3 ms·
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)
by tocomment 13y ago
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)
- bjacobel 13y agoI'd have a look at the <meta viewport=""> tag.
- bti 13y ago<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> or <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0 />
- tocomment 13y agoThanks! 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 https://gist.github.com/beastaugh/725354 [2] http://davidwalsh.name/demo/mobile-viewport.php http://davidwalsh.name/demo/mobile-viewport.php
- tocomment 13y agoAlas, a bookmarklet to re-enable zooming on the iphone is born: http://stackoverflow.com/questions/17087750/how-to-re-enable-zoom-on-iphone-with-javascript-bookmarklet http://stackoverflow.com/questions/17087750/how-to-re-enable...
- exodust 13y agoModern 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.