Re:Websites Prep for Google’s ‘Mobilegeddon’
by circlingthesun on Tuesday April 21, 2015 @03:05PM
(#9416258)
I disable zoom to prevent IOS and Android from zooming in when a textbox is focused. How else can I prevent this?
[ Parent
| on HN ]
Re:Websites Prep for Google’s ‘Mobilegeddon’
by leephillips on Tuesday April 21, 2015 @03:13PM
(#9416312)
Why 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.
Re:Websites Prep for Google’s ‘Mobilegeddon’
by jianshen on Tuesday April 21, 2015 @06:33PM
(#9417589)
As 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.
Yes, 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.
As 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.
Re:Websites Prep for Google’s ‘Mobilegeddon’
by kaffeinecoma on Tuesday April 21, 2015 @09:32PM
(#9418198)
Make the font of your input larger: http://stackoverflow.com/a/6394497/93995.
Re:Websites Prep for Google’s ‘Mobilegeddon’
by roughcoder on Tuesday April 21, 2015 @03:16PM
(#9416341)
It 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.
Re:Websites Prep for Google’s ‘Mobilegeddon’
by phillipwills on Tuesday April 21, 2015 @03:43PM
(#9416528)
There's a magic font-size that prevents this... I think it was around 19px, but I'm not sure...
Re:Websites Prep for Google’s ‘Mobilegeddon’
by NietTim on Wednesday April 22, 2015 @07:58AM
(#9419748)
FYI, it seems to be 16 http://stackoverflow.com/questions/2989263/disable-auto-zoom...