Open HiveTechDev opened 1 month ago
Tyler Hall dixit:
- in console enter:
document.body.style.zoom = "80%"
Isn’t that what Firefox has been warning of since years already, that the “nōn-standard zoom property” will not be supported or something?
This happens on older IE versions as well as some Firefox. If you mash ctrl +/- with chrome this will happen sometimes as well. It's hard to get it in that state but I have a couple of times.
This snippet was to force the case in which you can see it but it is also used by some other libraries and chrome plugins (not that I can control what everyone does for zoom).
Other libraries do support zooming. Thought it would be an issue to bring up.
Tyler Hall dixit:
This happens on older IE versions as well as some Firefox. If you mash ctrl +/- with chrome this will happen sometimes as well. It's hard to get it in that state but I have a couple of times.
Ah, okay.
Some browser's zoom behavior makes the x/y mouse position thrown off. When programmatically changing the zoom it looks like the canvas offset gets thrown off of the x/y and will cause hover and button clicks to be left/right depending on the zoom amount.
You can see this on any of the demos.
document.body.style.zoom = "80%"
If there is a workaround for this, would be great.