FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

allow webAgg to report middle click events by ianhi · Pull Request #18172 · matplotlib/matplotlib · GitHub

Repository navigation

allow webAgg to report middle click events - #18172

Merged
QuLogic merged 3 commits into
matplotlib:masterfrom
ianhi:report-button-correctly
Aug 5, 2020
Merged

QuLogic merged 3 commits into
matplotlib:masterfrom
ianhi:report-button-correctly

Conversation

ianhi commented Aug 4, 2020

Copy link
Copy Markdown
Contributor

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

  • Has Pytest style unit tests (does remove code require writing a new test?)
  • Code is Flake 8 compliant
  • na New features are documented, with examples if plot related
  • na Documentation is sphinx and numpydoc compliant
  • na Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • na? Documented in doc/api/next_api_changes/* if API changed in a backward-incompatible way

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)

QuLogic commented Aug 4, 2020

Copy link
Copy Markdown
Member

The right-click menu should be fixed by #18142, so yes, that comment is outdated.

QuLogic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Maybe this should get a behavioural change API note?

ianhi commented Aug 4, 2020

Copy link
Copy Markdown
Contributor Author

I added a note.

The right-click menu should be fixed by #18142,

Only 4 days ago! I guess I got lucky with my timing

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>

timhoffm commented Aug 5, 2020

Copy link
Copy Markdown
Member

Anybody can merge after CI pass.

timhoffm added this to the v3.4.0 milestone Aug 5, 2020
QuLogic merged commit dffc19c into matplotlib:master Aug 5, 2020

QuLogic commented Aug 5, 2020

Copy link
Copy Markdown
Member

Thanks @ianhi! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again.

ianhi deleted the report-button-correctly branch August 5, 2020 15:23
QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Sep 10, 2020
QuLogic mentioned this pull request Sep 10, 2020
2 tasks done
danuo pushed a commit to danuo/matplotlib that referenced this pull request Sep 11, 2020
QuLogic mentioned this pull request Mar 18, 2021
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webAgg backend incorrectly reports middle clicks as right clicks Middle click event is reported as right click

3 participants


Back | FazBrowse Home | New Git URL