-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
zoom behaves incorrectly when dragging with right mouse button held down #5311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This produces unwanted behavior for my project as well and there doesn't seem to be any simple way to disable right mouse button interactions altogether |
A bit late, but I managed to fix this with a workaround for me. boxRef is added on a wrapper of the graph, in my case a Box element from MUI that wraps the Plotly Graph With this on right click drag does nothing, you can also add "click" event listener to further disable right click only (not drag) For MouseEvent.button https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
|
When having zoom enabled, I can use the left mouse button to drag a box around the area of interest and get a zoomed in version of my graph.
However, when I'm doing the exact same action with not the left mouse button held down, but the right mouse button held down there should not be any zoom applied. The current behaviour is, that I drag with the right mouse button held down, no box is drawn, but if I release the right mouse button there is zoom applied showing data within a distance of two units around the initially right-clicked point.
It is reproducible in this stackblitz.
Please feel free to ask, if you need any other details.
The text was updated successfully, but these errors were encountered: