How to enforce pinch-to-zoom on Firefox/Chrome on Android
- Published at
- Updated at
- Reading time
- 1min
This post is a note that includes my thoughts about something I found online. Check it out yourself!
Manuel's quick explainer "Please, stop disabling zoom" includes a tip for Android Chrome/Firefox users I didn't know.
You might know that you can disable pinch-to-zoom on mobile devices using an evil meta
element.
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
But did you know that you can overwrite this meta
element and force Chrome and Firefox to allow pinch-to-zoom?
Now you do. 😉
Thanks Manuel for sharing this little detail. I'm happily zooming everywhere on my Android device now!
Was this post helpful?
Yes? Cool! You might want to check out Web Weekly for more WebDev shenanigans. The last edition went out 3 days ago.
Yes? Cool! You might want to check out Web Weekly for more WebDev shenanigans. The last edition went out 3 days ago.