Open antoniovazquezblanco opened 1 year ago
This is unfortunately a bug (or rather missing feature) in the webagg backend. I fixed this in ipympl (based on webagg) like this:
so I suspect that something similar could be implemented added to webagg here: https://github.com/matplotlib/matplotlib/blob/515cce40f14a4fe4eed15ddaa569052badb71229/lib/matplotlib/backends/web_backend/js/mpl.js#L301-L308
I suggest you open a feature request on the matplotlib repo for this. (feel free to tag me as well) (edit see https://github.com/matplotlib/matplotlib/issues/26032)
Bug report
I am using zoom_factory with the WebAgg backend. Using the scroll wheel on the canvas does not prevent my browser from scrolling...
Code for reproduction
Actual outcome
Scroll affects both my figure and the browser window...
Expected outcome
Scroll only affects my figure...
Version Info