From 53ba01acca4a80649743023984d6a9b6345c91e8 Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Tue, 14 Dec 2010 19:15:45 +0000 Subject: [PATCH] Fix bug with highlight that caused it to update too often git-svn-id: https://flot.googlecode.com/svn/trunk@280 1e0a6537-2640-0410-bfb7-f154510ff394 --- jquery.flot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jquery.flot.js b/jquery.flot.js index f558dbd..3afa467 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -2270,7 +2270,7 @@ triggerClickHoverEvent("plothover", e, function (s) { return s["hoverable"] != false; }); } - + function onClick(e) { triggerClickHoverEvent("plotclick", e, function (s) { return s["clickable"] != false; }); @@ -2300,7 +2300,9 @@ for (var i = 0; i < highlights.length; ++i) { var h = highlights[i]; if (h.auto == eventname && - !(item && h.series == item.series && h.point == item.datapoint)) + !(item && h.series == item.series && + h.point[0] == item.datapoint[0] && + h.point[1] == item.datapoint[1])) unhighlight(h.series, h.point); }