-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
pan with mouse wheel pressed + box zoom on left button #4004
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
A quick hack in plotly.min.js is to force to pan mode on middle button (e.buttons==4). Modify :o="pan"),St.minDrag="lasso" to :o="pan"),4==e.buttons && (o="pan"),St.minDrag="lasso" If zooming is active, the left button has naturally box zoom. Yet, one short coming is, that the mouse pointer does not change to the pan look. |
From the code I also noted that the |
@mzechmeister did you manage to get pan using middle button working? |
Yes, I have got it running. See here for a demo. The code line with critical hack is here: |
I would like to have:
Currently, all three together do not work simultaneously. One needs to toggle the zoom/pan button, which is cumbersome.
So, how can I get this behaviour?
The text was updated successfully, but these errors were encountered: