Live data from Hacker News

WebKit removes the 350ms click delay for iOS

trac.webkit.org

21–30 of 144 posts

Re: WebKit removes the 350ms click delay for iOS

#21

Remind me: They originally had the 350ms delay in there to distinguish between a tap and a pinch, correct?

A tap and a double-tap, AFAIK. Since the latter is used for zooming, if the page is not scalable then the possibility that the user has double-tapped can be disregarded.

Re: WebKit removes the 350ms click delay for iOS

#22
post #2

Finally. Typing this on an iOS 9 device and I, as a human, cannot 'fast tap' enough for iOS to register a 'fast tap' and not delay. Try it here: http://output.jsbin.com/xiculayadu

It's a "slow tap" that eliminates the delay. Tap and hold your finger down for a moment. The delay registered with a "slow tap" is about 10 ms for me.

Re: WebKit removes the 350ms click delay for iOS

#23

I really don't understand the lamentation around pinch to zoom. There's a fantastic os-level zoom built into ios! Set it up and three-finger-click to activate. And it works great.

I am a huge fan of the 3-finger zoom, but it's not exaclty the same as browser-provided zooming. The screen zooming provided by the 3-finger tap will not add resolution to downscaled images.

If I'm looking at a site that presents a massive image scaled to my display, the browser zoom will add more information as you zoom in. The 3-finger zoom will make the existing pixels larger.

Most of the time this difference isn't an issue, but it is a difference.

Re: WebKit removes the 350ms click delay for iOS

#24

Ugh... This change is of course totally logical in isolation, but I fear that this will motivate designers and developers to disable pinch-zooming on their sites (more than they already are). I hate when websites do this, and it is generally considered terrible for accessibility.

Hopefully the intersection of "knows/cares about things like the 350ms tap delay" and "cares about whether the site is too small to read" will be large.

Re: WebKit removes the 350ms click delay for iOS

#25
post #3

The change applies only to unscalable viewports. That's a shame, because it means some developers will disable pinch-to-zoom to get a faster click response. That makes this yet another unfortunate conflict between usability and accessibility. The older I get, the more I appreciate being able to zoom (I'm viewing this page at 125% on desktop right now).

why would they not follow what browsers already do and solely rely on:

    
this is basically a solved problem with pretty much all other vendors having already converged.

instead, they're giving fastclick [1] a reason to live on to polyfill a single, non-conforming vendor :(

[1] https://github.com/ftlabs/fastclick

Re: WebKit removes the 350ms click delay for iOS

#26

A lot of commenters here are afraid of developers disabling user scaling to get better performance. That is incorrectly making the assumption that user scaling is good thing for every kind of website. If a 350ms click delay is actually a performance bottleneck on the app you are building, it's very likely user scaling is something you want disabled anyway.

If you're building your website to behave well on mobile devices, you're likely implementing your own touch handlers and are not using click events to begin with.

Re: WebKit removes the 350ms click delay for iOS

#28

What's the intended function of the previous functionality? Didn't double-tapping zoom in and out to a specific section? What problem does the delay solve that isn't present on unscalable viewports?

The delay allows webkit to detect a double tap. Otherwise, any element with a click handler would immediately fire, effectively disabling double tapping for their region.

Re: WebKit removes the 350ms click delay for iOS

#29
post #14

Can someone explain what this means for the non-IOS developers amongst us?

As I understand it... If you're using Mobile Safari (or many other mobile browsers), and you double-tap something, it's interpreted as meaning "zoom in to this element". This is useful for pages with narrow columns and things on the sides, etc. However, in order to implement this, when you do a single tap, the browser has to wait to make sure that you don't do a double-tap. So there's a 350ms delay while it's waiting…

Also worth mentioning: Chrome for Android did this last year. GP was asking about iOS, but it's not an iOS-specific thing.

Re: WebKit removes the 350ms click delay for iOS

#30
post #6

While I do symapthise with those lamenting the lack of pinch-to-zoom, I'm confused: apps don't offer pinch to zoom, so how do you use them? If you can use an app fine without pinch to zoom, you should really be able to use a mobile website fine too. It seems to me that this is an either/or proposition: either you have a not-mobile, pinch-to-zoom-able web site, or you have a mobile-specific site with an app-like viewp…

Apps also support a lot more in the way of accessibility features, e.g. Dynamically resizable text.
Post reply on HN