-
-
Notifications
You must be signed in to change notification settings - Fork 438
Description
I was implementing the cursor synchronization following the sync-cursor demo and I had some really strange behavior on my charts, like they were "locking up"
I was able to reproduce this in the sync cursor demo with the following steps:
- Load the sync-cursor demo
- Disable sync
- Click inside the CPU plot to lock the cursor
- Enable sync
- Click inside the CPU plot to unlock the cursor
The other two plots now get a locked cursor while the first plot has it unlocked.
There's other weird behavior that happens with an unsynced cursor lock, like zooming doesn't quite work, but it sort of fixes it (probably because the first click unlocks the cursor in the other two plots while still listening for mouseup in the first plot).
In the example I sort of had to go out of my way to recreate this behavior, but for my implementation it seems like the first mousedown when zooming locks the other cursors. Also, this doesn't happen if I don't call ".sub" on the uplot.sync object (and yet sync still works).
I'm just reporting the issue. Maybe it's worth removing lock: true from the cursor sync demo?