4 ms·
In the old days you needed to disable zoom in order to get click events immediately, rather than delayed a bit so it can tell whether it's really going to be a
by electroly 4y ago
In the old days you needed to disable zoom in order to get click events immediately, rather than delayed a bit so it can tell whether it's really going to be a zoom operation. Is that still true?
- bennyp101 4y agoYea, still a 2-300ms delay, which is why I guess a lot of devs just disable zoom - that way they get that "instant native app" feel without actually having to think about it :) Edit: Having just tried the sites in the Safari ... they zoom in just fine with that set, so .. Im a bit confused
- nicoburns 4y agoThere's now a specific CSS property for this which I believes disables specifically double tap to zoom (while leaving pinch-to-zoom working).
- madhato 4y agoNo longer needed. From https://webkit.org/blog/7367/new-interaction-behaviors-in-ios-10/ https://webkit.org/blog/7367/new-interaction-behaviors-in-io... 1. There must be a meta tag of type viewport 2. The viewport must be defined to have width=device-width 3. The content must be at a scale of 1