diff --git a/NEWS.txt b/NEWS.txt index beedf007..6b2e57b2 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -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 diff --git a/jquery.flot.navigate.js b/jquery.flot.navigate.js index d32b3669..e1562806 100644 --- a/jquery.flot.navigate.js +++ b/jquery.flot.navigate.js @@ -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;