手机端解决Click延迟300ms 的问题

来源:互联网 发布:linux系统ntp服务器 编辑:程序博客网 时间:2024/06/10 22:58

Now some mobile browsers eliminate 300 ms click delay if you set the viewport. You don't need to use workarounds anymore.

<meta name="viewport" content="width=device-width, user-scalable=no">

This is currently supported Chrome for Android and Firefox for Android

However on iOS Safari, double-tap is a scroll gesture on unzoomable pages. For that reason they can't remove the 300ms delay. If they can't remove the delay on unzoomable pages, they're unlikely to remove it on zoomable pages.

Windows Phones also retain the 300ms delay on unzoomable pages, but they don't have an alternative gesture like iOS so it's possible for them to remove this delay as Chrome has. You can remove the delay using:

html {-ms-touch-action: manipulation;touch-action: manipulation;}
0 0
原创粉丝点击