Hacker News new | past | comments | ask | show | jobs | submit login

By the way, I could never figure out how some sites disable zoom on the iphone? Anyone know?

(I'd love to write a bookmarklet to re-enable zoom)




<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> or <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0 />


Thanks! I found this bookmarlet someone already made [1] and I found a page to test it out on [2].

But it doesn't seem to do anything. Any ideas why it wouldn't be working?

[1] https://gist.github.com/beastaugh/725354 [2] http://davidwalsh.name/demo/mobile-viewport.php


Alas, a bookmarklet to re-enable zooming on the iphone is born: http://stackoverflow.com/questions/17087750/how-to-re-enable...


Modern smartphone browsers (at least on Android 4+ including the default browser), allow you to override the website's request to control zoom.

As it should be.

Denying users zoom on a web page with the viewport trick is stupid. Sorry, but it is.

Websites shouldn't "pretend" to be native apps. GOOD native apps that don't respond to pinch and zoom will allow font size change anyway - such as the excellent Falcon Pro Twitter client. Lack of zoom doesn't matter because I can punch in the font size and all is well.


I'd have a look at the <meta viewport=""> tag.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: