diff --git a/examples/interacting.html b/examples/interacting.html index 969e38f..b5c8003 100644 --- a/examples/interacting.html +++ b/examples/interacting.html @@ -13,8 +13,8 @@
-One of the goals of Flot is to support user interactions intelligently. - Try mousing the above plot.
+One of the goals of Flot is to support user interactions. Try + pointing and clicking on the points.
Mouse hovers at (0, 0).
diff --git a/jquery.flot.js b/jquery.flot.js index e8a5cf4..f2371fd 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1600,8 +1600,8 @@ pos.x2 = x2axis.c2p(canvasX); if (y2axis.used) pos.y2 = y2axis.c2p(canvasY); - - item = findNearbyItem(canvasX, canvasY); + + var item = findNearbyItem(canvasX, canvasY); if (item) { // fill in mouse pos for any listeners out there