-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
wxPython 4.1 does not propagate MouseWheel event with WxAgg #17513
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
What changed between wxPython 4.0 and 4.1? Was there an intentional change on the wxPython side that we need to accommodate or is this a bug in wxPython? |
We call |
Thanks for your quick responses. I am not sure what changed on the wxPython side to cause this. Here are the release notes if that is helpful: https://wxpython.org/news/2020-04-24-wxpython-410-release/index.html. The most significant change seems to be tracking a different wxWidgets branch. The |
See #22211 |
I can confirm that this fixes it. Recommend that we make this change on the matplotlib permanent. Thanks for your help! |
Bug report
Bug summary
wxPython 4.1 is not propagating MouseWheel events with the WxAgg backend. The events seem to stop within the matplotlib canvas. Other wxPython controls are propagating it correctly with version wxPython 4.1, and everything works fine with wxPython 4.0.7.
Code for reproduction
Actual outcome
With wxPython 4.1.0, the scrolling does not work, and the console output is:
MPL Scroll
Note: the event does not propagate up. Other wxPython items like text controls propagate correctly.
Expected outcome
With wxPython 4.0.7, the scrolling works, and the console output is:
MPL Scroll
Canvas Scroll
WX Scroll
Note: the event propagates up correctly.
Matplotlib version
print(matplotlib.get_backend())
): WxAggInstalled from pip
The text was updated successfully, but these errors were encountered: