-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[js] 第73天 移动端点击事件为什么会有延迟?有哪些方法可以解决? #515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
原因:等待300ms看用户是点击还是双击缩放 |
现在你只要设置了, viewpoint, 手机浏览器就会默认禁止300ms延迟了 |
移动端click事件会有300ms的延迟用来确定用户是不是双击的操作,这样的延迟效果也造成了移动端有点透的问题 |
视口延迟判断,300ms之内会不会有下一次点击操作,如果有就是放大缩小,没有就是点击事件 |
|
为了兼容移动端的双击事件,300ms连续两次就是双击,否则就是单击。 |
第73天 移动端点击事件为什么会有延迟?有哪些方法可以解决?
The text was updated successfully, but these errors were encountered: