1.js touch事件分别为touchstart、touchmove、touchend。
2、在touchstart、touchmove、touchend事件不阻止浏览器默认行为的情况下scroll事件正常执行
代码结构如下:
3、分别在touchstart、touchmove事件阻止浏览器默认行为的情况下scroll事件被阻止
1.js touch事件分别为touchstart、touchmove、touchend。
2、在touchstart、touchmove、touchend事件不阻止浏览器默认行为的情况下scroll事件正常执行
代码结构如下:
3、分别在touchstart、touchmove事件阻止浏览器默认行为的情况下scroll事件被阻止
本文标题:js touch事件与scroll事件的注意事项
本文链接:https://www.haomeiwen.com/subject/jqulzftx.html
网友评论