-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
CSS Zoom put the mess with the hover #7178
Comments
I ran into the same problem and can hence confirm it. It would cool to find a solution! |
The problem is that the mouse position has to be scaled by the inverse CSS zoom. You can fix it by injecting this piece of code into line 107 of
Maybe a maintainer can turn this into a pull request, since they know better how those should look like? |
Can confirm this is still broken in v3.0.0-beta.9 however the CSS zoom feature is non-standard and not on the standards track according to https://developer.mozilla.org/en-US/docs/Web/CSS/zoom so I don't think we should fix this. @kurkle thoughts? |
I don't think we should add such code in core. You can do it in a plugin: https://jsfiddle.net/85f41yra/ |
The "zoom" property is now part of baseline for all the major browsers since May 2024 (https://developer.mozilla.org/en-US/docs/Web/CSS/zoom). Can we reopen this issue? |
The zoom property is part of the Baseline 2024. |
Expected Behavior
When I'm using the CSS property zoom: 2; the hover elements of my canvas should be sync with the canvas element.
Current Behavior
If I'm applying zoom:2; the hover is desynchronized from the canvas element
Possible Solution
Steps to Reproduce (for bugs)
Context
The Zoom property is mostly used for having a nice behavior on all the screens (responsive).
In my case, I was implementing Chart.js to the Reveal.js framework (a presentation framework).
Environment
The text was updated successfully, but these errors were encountered: