![]() ![]() Then accordingly, apply HTML5 scale transformation on the body element to scale down by the same ratio. I think what you can do is, listen to browser zoom event(ctrl + "+") and then check for vicePixelRatio. is concerned only with devices on which layout viewport and visual viewport are not the same thing, i.e.zoom is a non-standard property not supported by Firefox, and.If they then decide they need to zoom the page, there's no good reason to let you prevent them from doing so. On desktops, there is no auto-zoom, so when users come to your website, they see it exactly as it was meant to be seen. In short, you might need to prevent mobile devices from initially auto-zooming your website, if you know their calculated auto-zoom will be inappropriate. This documentation might shed some light into why allowing authors to disable zoom might be a good idea on mobile devices, but not on desktops. However, all answers to similar questions I've found (like this one or that one) suggest the same thing - the browser's zoom feature exists for the benefit of the users and some browsers (like Firefox) simply don't allow you, as a website creator, to take this option away from them. I haven't really found an "authoritative" answer, meaning a clear statement from browser developers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |