美文网首页
平板 touchMove事件不触发

平板 touchMove事件不触发

作者: 小杰的简书 | 来源:发表于2018-03-23 09:59 被阅读0次

    在做app的过程中,手机端的(touchmove)事件都是可以触发的,但是在平板中事件不触发

    解决方法:

    只需要阻止元素发生默认的行为

    // 触摸移动

    touchMove($event:any){

        $event.preventDefault();

    }

    相关文章

      网友评论

          本文标题:平板 touchMove事件不触发

          本文链接:https://www.haomeiwen.com/subject/dqptcftx.html