You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, a user moves the mouse slightly during a click.
When the zoom tool is active, a short drag does not fire plotly_click, nor does zoom happen due to some minimum drag length for zoom. I've seen users frustrated by this behavior.
I think plotly_click should fire when there's a short drag under the min drag length.
The Pan tool seems to fire plotly_click for short drags.
In what contexts are you seeing this? We're probably not consistent about this, but at least the callers that go through dragElement get a minDrag that's usually set to 8px and should still emit a plotly_click below that threshold.
@alexcjohnson it's when the zoom tool is active
Try the official demo: https://plot.ly/javascript/click-events/
Drag a few pixels and nothing happens (except for gray background appearing during drag).
Switch to Pan tool, and small drag fires plotly_click
arlowhite
changed the title
sloppy plotly_click (slight cursor move during click)
short drag with zoom tool does not fire plotly_click
May 2, 2018
You're right, that should register a click. Thanks for clarifying!
We should probably make variants of all tests for all of our click events, where between mousedown and mouseup we add a small mousemove.
Sometimes, a user moves the mouse slightly during a click.
When the zoom tool is active, a short drag does not fire
plotly_click
, nor does zoom happen due to some minimum drag length for zoom. I've seen users frustrated by this behavior.I think
plotly_click
should fire when there's a short drag under the min drag length.The Pan tool seems to fire
plotly_click
for short drags.This can be reproduced with the official demo: https://plot.ly/javascript/click-events/
The text was updated successfully, but these errors were encountered: