touchmove

touchstart、touchmove、touchend与click冲突

在移动端,一个元素既注册有滑动事件,又注册有点击事件时就会出现一些问题。滑动事件的优先级是大于点击事件的,而当我们只想执行点击事件而不想触发滑动时间时,就必须做个处理事件执行顺序:touchstart →touchmove →touchend→click所以当我们执行点击事件时,其实在执行点击事件之 ......
touchstart touchmove touchend click
共1篇  :1/1页 首页上一页1下一页尾页