Commit ddcfbb14 authored by olau@iola.dk's avatar olau@iola.dk

Fix bug in restoring cursor in navigate plugin (reported by Matteo

Gattanini, issue 395)


git-svn-id: https://flot.googlecode.com/svn/trunk@306 1e0a6537-2640-0410-bfb7-f154510ff394
parent 26cf412e
...@@ -138,6 +138,8 @@ Bug fixes: ...@@ -138,6 +138,8 @@ Bug fixes:
- Adapt examples to skip loading excanvas (fix by Ryley Breiddal). - Adapt examples to skip loading excanvas (fix by Ryley Breiddal).
- Fix bug that prevent a simple f(x) = -x transform from working - Fix bug that prevent a simple f(x) = -x transform from working
correctly (fix by Mike, issue 263). correctly (fix by Mike, issue 263).
- Fix bug in restoring cursor in navigate plugin (reported by Matteo
Gattanini, issue 395).
Flot 0.6 Flot 0.6
......
...@@ -153,7 +153,9 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L ...@@ -153,7 +153,9 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L
eventHolder.bind("dragstart", { distance: 10 }, function (e) { eventHolder.bind("dragstart", { distance: 10 }, function (e) {
if (e.which != 1) // only accept left-click if (e.which != 1) // only accept left-click
return false; return false;
eventHolderCursor = eventHolder.css('cursor'); var c = eventHolder.css('cursor');
if (c)
prevCursor = c;
eventHolder.css('cursor', o.pan.cursor); eventHolder.css('cursor', o.pan.cursor);
pageX = e.pageX; pageX = e.pageX;
pageY = e.pageY; pageY = e.pageY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment