还需要fastclick js吗?
Is fastclick js still needed?
我的意思是:
https://github.com/ftlabs/fastclick
它是否仍然需要且重要?
我知道某些浏览器与视口声明有关。不过好像都是老东西了,现在的其他浏览器呢?
<meta name="viewport" content="width=device-width, initial-scale=1">
本文详细解释了为什么以及何时需要 fastclick.js
:
https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away
TL;DR
As of Chrome 32 (back in 2014) this delay is gone for mobile-optimised sites, without removing pinch-zooming! Firefox and IE/Edge did the same shortly afterwards, and in March 2016 a similar fix landed in iOS 9.3.
只要您的 <head>
包括:<meta name="viewport" content="width=device-width">
,这样浏览器就会假定您已使文本在移动设备上可读,因此无需双击。
我的意思是:
https://github.com/ftlabs/fastclick
它是否仍然需要且重要?
我知道某些浏览器与视口声明有关。不过好像都是老东西了,现在的其他浏览器呢?
<meta name="viewport" content="width=device-width, initial-scale=1">
本文详细解释了为什么以及何时需要 fastclick.js
:
https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away
TL;DR
As of Chrome 32 (back in 2014) this delay is gone for mobile-optimised sites, without removing pinch-zooming! Firefox and IE/Edge did the same shortly afterwards, and in March 2016 a similar fix landed in iOS 9.3.
只要您的 <head>
包括:<meta name="viewport" content="width=device-width">
,这样浏览器就会假定您已使文本在移动设备上可读,因此无需双击。