Skip to content

Conversation

martinRenou
Copy link
Member

This fixes mouse position computation (relative to the canvas). This fixes resizing issues in complicated front-ends like custom Voila templates, where the scroll level of the page is not the document scroll, for example with a fixed top bar.

It was actually useless to depend on the scroll level, as all we need to know is the mouse relative position to the canvas, viewport coordinates are enough.

This fixes mouse position computation, fixing resizing issues in
complicated front-ends like custom Voila templates (where the scroll
level of the page is not the document scroll, for example with a fixed
top bar).

Signed-off-by: martinRenou <martin.renou@gmail.com>
@martinRenou martinRenou force-pushed the fix_mouse_relative_position branch from 1728bbd to 3be8051 Compare February 28, 2020 07:43
@martinRenou martinRenou merged commit d54b464 into matplotlib:master Feb 28, 2020
@martinRenou martinRenou deleted the fix_mouse_relative_position branch February 28, 2020 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant