扫码关注官方订阅号
大家有做过web端的html5的touchmove事件吗? 为什么只要我两个手指触发了move事件之后,就停不下来呢?
具体来说就是两个手指试图放大一块区域,两个手指移动一下之后就不动了,但是touchmove事件一直在响应,如何停止?
认证高级PHP讲师
touchstart、touchmove、touchend 可以在 touchend里来停止
有四个事件:
touchstart
touchmove
touchend
touchcancel
组成了整个touch事件。其中touchend手指从屏幕上拿起的时候触发,因此只利用touchmove是不行的。
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
touchstart、touchmove、touchend 可以在 touchend里来停止
有四个事件:
touchstart
touchmove
touchend
touchcancel
组成了整个touch事件。其中
touchend
手指从屏幕上拿起的时候触发,因此只利用touchmove
是不行的。