search

Home  >  Q&A  >  body text

javascript - html5 touchmove事件疑惑

大家有做过web端的html5的touchmove事件吗?
为什么只要我两个手指触发了move事件之后,就停不下来呢?

具体来说就是两个手指试图放大一块区域,两个手指移动一下之后就不动了,但是touchmove事件一直在响应,如何停止?

PHP中文网PHP中文网2908 days ago505

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-10 14:26:37

    touchstart、touchmove、touchend 可以在 touchend里来停止

    reply
    0
  • 阿神

    阿神2017-04-10 14:26:37

    有四个事件:

    • touchstart
    • touchmove
    • touchend
    • touchcancel

    组成了整个touch事件。其中touchend手指从屏幕上拿起的时候触发,因此只利用touchmove是不行的。

    reply
    0
  • Cancelreply