2 ms·
On a mobile zoom seems to work normally, but pinch-zoom is not the same as browser zoom (ctrl + mousewheel).
by lukan 2y ago
On a mobile zoom seems to work normally, but pinch-zoom is not the same as browser zoom (ctrl + mousewheel).
- echoangle 2y agoYes, mobile zoom is normally just cropping the viewport and showing only a part of the total website. Desktop browser basically adjust the font size of the root element to zoom, I think.
- lukan 2y ago"Desktop browser" zoom changes the virtual screensize. 50%zoom gets you 2 times document.body.clientWith So all the elements that refer to the screensize, will update automatically, but usually this is quite smooth. But you can listen for the event and do all kinds of things manually (and maybe too much).