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),