Skip to content

Commit

Permalink
Fix bug in restoring cursor in navigate plugin (reported by Matteo
Browse files Browse the repository at this point in the history
Gattanini, issue 395)


git-svn-id: https://flot.googlecode.com/svn/trunk@306 1e0a6537-2640-0410-bfb7-f154510ff394
  • Loading branch information
olau@iola.dk committed Mar 11, 2011
1 parent 26cf412 commit ddcfbb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.txt
Expand Up @@ -138,6 +138,8 @@ Bug fixes:
- Adapt examples to skip loading excanvas (fix by Ryley Breiddal).
- Fix bug that prevent a simple f(x) = -x transform from working
correctly (fix by Mike, issue 263).
- Fix bug in restoring cursor in navigate plugin (reported by Matteo
Gattanini, issue 395).


Flot 0.6
Expand Down
4 changes: 3 additions & 1 deletion jquery.flot.navigate.js
Expand Up @@ -153,7 +153,9 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L
eventHolder.bind("dragstart", { distance: 10 }, function (e) {
if (e.which != 1) // only accept left-click
return false;
eventHolderCursor = eventHolder.css('cursor');
var c = eventHolder.css('cursor');
if (c)
prevCursor = c;
eventHolder.css('cursor', o.pan.cursor);
pageX = e.pageX;
pageY = e.pageY;
Expand Down

0 comments on commit ddcfbb1

Please sign in to comment.