大家有做过web端的html5的touchmove事件吗?
为什么只要我两个手指触发了move事件之后,就停不下来呢?
具体来说就是两个手指试图放大一块区域,两个手指移动一下之后就不动了,但是touchmove事件一直在响应,如何停止?
大家有做过web端的html5的touchmove事件吗?
为什么只要我两个手指触发了move事件之后,就停不下来呢?
具体来说就是两个手指试图放大一块区域,两个手指移动一下之后就不动了,但是touchmove事件一直在响应,如何停止?
有四个事件:
touchstart
touchmove
touchend
touchcancel
组成了整个touch事件。其中touchend
手指从屏幕上拿起的时候触发,因此只利用touchmove
是不行的。
10 回答11.7k 阅读
2 回答3.2k 阅读✓ 已解决
3 回答1.7k 阅读✓ 已解决
5 回答827 阅读
4 回答2.2k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
3 回答866 阅读✓ 已解决
touchstart、touchmove、touchend 可以在 touchend里来停止