-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
allow webAgg to report middle click events #18172
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
Conversation
The current MouseEvent docstring has no mention of this issue so I did not remove anything there. This code was originally added to account for difficulties in preventing the context menu in chrome 23 matplotlib#1426 (comment)
The right-click menu should be fixed by #18142, so yes, that comment is outdated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should get a behavioural change API note?
I added a note.
Only 4 days ago! I guess I got lucky with my timing |
Co-authored-by: Elliott Sales de Andrade <[email protected]>
Anybody can merge after CI pass. |
Thanks @ianhi! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again. |
This was fixed by matplotlib#18172.
This was fixed by matplotlib#18172.
I removed the code in webAgg_core that prevented a user from being able to differentiate between middle click and right click events with a
mouse_button_event
callback. I removed this forcing of the reported button from 2->3. This code was originally added to account for difficulties in preventing the context menu in chrome 23 #1426 (comment) which in modern chrome should be possible. There was a comment asking to remove mention of this from the MouseEvent docstring, however the current docstring does not seem to mention this so I did not change anything there.Closes: matplotlib/ipympl#254
Closes: #18171
PR Summary
PR Checklist