6 ms·
I disable zoom to prevent IOS and Android from zooming in when a textbox is focused. How else can I prevent this?
by circlingthesun 11y ago
I disable zoom to prevent IOS and Android from zooming in when a textbox is focused. How else can I prevent this?
- leephillips 11y agoWhy do you feel you need to prevent it? As a user I'm pretty sure I'd rather just zoom back out if I want to, or use a browser that didn't do this if it really bothered me. But not having the option to zoom is annoying.
- chias 11y agoAs a user I find having to do this incredibly annoying. Maybe my phone is just a little zealous with the zooming, but it loves to zoom into the top-left corner of the textarea. The first thing I do uses three pinches' worth to zoom back out, and if I ever have to move the cursor and thus touch into the textarea again, it zooms in again.
- jianshen 11y agoAs a front-end dev, I'm really curious about this. If you're using a native mobile app, do you expect the UI to zoom in on text inputs as well? Is that a common UI behavior? I've always been a fan of moving mobile web towards the standards and behaviors of native apps which generally did not require zooming to get tasks done.
- p_l 11y agoYes, it does happen on some text inputs, it tends to depend on relative size (for example, I recall zoom in landscape but not necessarily in portrait, etc.). Generally I welcome it, because I can click on the teeeny input field and have it come "closer" to me for editing then get out of the way.
- roughcoder 11y agoIt used to be the case and I think still is for a large case of mobile/tablet devices to just set font size on inputs to 16px. I think with ios 8 this has changed.
- phillipwills 11y agoThere's a magic font-size that prevents this... I think it was around 19px, but I'm not sure...
- NietTim 11y agoFYI, it seems to be 16 http://stackoverflow.com/questions/2989263/disable-auto-zoom-in-input-text-tag-safari-on-iphone/6394497#6394497 http://stackoverflow.com/questions/2989263/disable-auto-zoom...
- deleted 11y ago[deleted]
- kaffeinecoma 11y agoMake the font of your input larger: http://stackoverflow.com/a/6394497/93995 http://stackoverflow.com/a/6394497/93995.