by leeoniya · 11y ago · 0 comments
Sometimes it's stupid, sometimes not. Disabling zoom removes the 300ms delay added to most interactions on mobile devices [1]. You can alternatively use fastclick.js [2] or swiftclick.js [3], but that's an extra lib/http request to load.
[1] http://updates.html5rocks.com/2013/12/300ms-tap-delay-gone-a...
<meta name="viewport" content="width=device-width">
It retains zoom and gets rid of the 300ms delay. At least in chrome, so the site says.FF says this issue is "RESOLVED FIXED", so maybe they implemented it too:
https://bugzilla.mozilla.org/show_bug.cgi?id=941995
I have that meta tag on all my sites and I just tested on Android and iOS: Clicking on links and other controls seem instant. And zoom works. Hurray!
"<meta name="viewport" content="width=device-width">"
Which is just what I do. Disabling zoom is one of those nonsensical practices that spreads as web "developers" copy code from each other. I suppose there's a use case for it somewhere, but its main purpose is to remove choice and make sites harder to use.EDIT: Actually I also include the initial-scale as in the comment below.
<meta name="viewport" content="width=device-width, initial-scale=1.0">I know only lip-service is paid towards accessibility but zoom shouldn't be able to be disabled except by the user.