3 ms·
Wait does viewport `width=device-width, initial-scale=1` prevent pinch-zoom? I thought it just set the initial zoom with initial scale, but didn't prevent zoom
by jrochkind1 2y ago
Wait does viewport `width=device-width, initial-scale=1` prevent pinch-zoom?
I thought it just set the initial zoom with initial scale, but didn't prevent zooming in further? But I don't pinch zoom websites much, and maybe I haven't tested my own in a while... googling the usual sources are not clarifying to me the interaction of all these things according to standard.
- hypertexthero 2y agoLooks like you can enable zooming with the maximum-scale property: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0"> Found this info here, and will try it out: https://stackoverflow.com/a/17891937 https://stackoverflow.com/a/17891937