Commit e74c4f69 authored by olau@iola.dk's avatar olau@iola.dk

Fix problem with crosshair not respecting locking on mouseout (fix by Lau Bech Lauritzen).


git-svn-id: https://flot.googlecode.com/svn/trunk@247 1e0a6537-2640-0410-bfb7-f154510ff394
parent e131b776
...@@ -42,6 +42,8 @@ Bug fixes: ...@@ -42,6 +42,8 @@ Bug fixes:
- Check the selection passed into setSelection in the selection - Check the selection passed into setSelection in the selection
plugin, to guard against errors when synchronizing plots (fix by Lau plugin, to guard against errors when synchronizing plots (fix by Lau
Bech Lauritzen). Bech Lauritzen).
- Fix bug in crosshair code with mouseout resetting the crosshair even
if it is locked (fix by Lau Bech Lauritzen).
Flot 0.6 Flot 0.6
-------- --------
......
...@@ -95,6 +95,9 @@ The plugin also adds four public methods: ...@@ -95,6 +95,9 @@ The plugin also adds four public methods:
return; return;
eventHolder.mouseout(function () { eventHolder.mouseout(function () {
if (crosshair.locked)
return;
if (crosshair.x != -1) { if (crosshair.x != -1) {
crosshair.x = -1; crosshair.x = -1;
plot.triggerRedrawOverlay(); plot.triggerRedrawOverlay();
......
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