ftlabs / fastclick

Polyfill to remove click delays on browsers with touch UIs
MIT License
18.66k stars 3.22k forks source link

Fastclick is no longer required in iOS 10? #514

Open nicmar opened 7 years ago

nicmar commented 7 years ago

Try this demo on an iOS 10 device: http://ftlabs.github.io/fastclick/examples/layer.html

There is very little difference now, button A gives 10-20ms delay on my iPhone 6s and iPhone 5c, instead of 300ms as before. I'm not sure if this is new to iOS 10 or already in iOS 9.

I'm interested to hear if anyone else has similar experiences.

wulfsolter commented 7 years ago

A couple of years now.. https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away Hence why this repo is a bit of a ghost town these days..

movedoa commented 7 years ago

Only if your viewport is exactly the device-width, if you zoom in a bit or have a different vieweport, the delay still exists

cmermingas commented 7 years ago

Also, if you "optimize" your web application by adding the apple-mobile-web-app-capable meta tag, as documented by Apple, and you add the page to your home screen, the delay comes back.

Try it out here (install it in your home screen):

https://cmermingas.github.io/fastclick/examples/layer.html

I am not sure why this happens and I am very grateful for Fastclick.

liufeisprit commented 7 years ago

i don't know

gazpachu commented 7 years ago

@cmermingas I have that exact issue when adding the web app to the home screen. Have you found out a fix?

gazpachu commented 7 years ago

Nop. TBH, I haven't looked for one yet

artuska commented 6 years ago

300ms delay still exists when running in WebView (eg. Cordova).

geekchow commented 6 years ago

Because the cordova use the UIWebView rather than WKWebView, and the UIWebView haven't fix the delay issue.

githubhwen commented 5 years ago

I still hace this problem in IOS 12, the input box is difficult to focus.

GitToTheHub commented 5 years ago

Because the cordova use the UIWebView rather than WKWebView, and the UIWebView haven't fix the delay issue.

You can use https://github.com/apache/cordova-plugin-wkwebview-engine It's easy to integrate :)