526互联
首页
Ai
Java
Python
Android
Mysql
JavaScript
Html
CSS
touchstart
touchstart、touchmove、touchend与click冲突
在移动端,一个元素既注册有滑动事件,又注册有点击事件时就会出现一些问题。滑动事件的优先级是大于点击事件的,而当我们只想执行点击事件而不想触发滑动时间时,就必须做个处理事件执行顺序:touchstart →touchmove →touchend→click所以当我们执行点击事件时,其实在执行点击事件之 ......
touchstart
touchmove
touchend
click
更新时间 2023-06-15
共1篇 :1/1页
首页
上一页
1
下一页
尾页