From fe4bef6fb172ded4c3489034b7f53460a250ad48 Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Mon, 13 Dec 2010 17:28:46 +0000 Subject: [PATCH] Fix bug with tooltip in interacting.html, this makes the tooltip much smoother (fix by bdkahn) git-svn-id: https://flot.googlecode.com/svn/trunk@274 1e0a6537-2640-0410-bfb7-f154510ff394 --- NEWS.txt | 2 ++ examples/interacting.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS.txt b/NEWS.txt index 106990b..9d181f0 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -102,6 +102,8 @@ Bug fixes: arrays, patch by vpapp1). - Fix errors in JSON in examples so they work with jQuery 1.4.2 (fix reported by honestbleeps, issue 357). +- Fix bug with tooltip in interacting.html, this makes the tooltip + much smoother (fix by bdkahn). Flot 0.6 diff --git a/examples/interacting.html b/examples/interacting.html index fbf0390..dd8e6c6 100644 --- a/examples/interacting.html +++ b/examples/interacting.html @@ -62,8 +62,8 @@ $(function () { if ($("#enableTooltip:checked").length > 0) { if (item) { - if (previousPoint != item.datapoint) { - previousPoint = item.datapoint; + if (previousPoint != item.dataIndex) { + previousPoint = item.dataIndex; $("#tooltip").remove(); var x = item.datapoint[0].toFixed(2),