Commit 53ba01ac authored by olau@iola.dk's avatar olau@iola.dk

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
parent 43633207
......@@ -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);
}
......
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