在做app的过程中,手机端的(touchmove)事件都是可以触发的,但是在平板中事件不触发
解决方法:
只需要阻止元素发生默认的行为
// 触摸移动
touchMove($event:any){
$event.preventDefault();
}
在做app的过程中,手机端的(touchmove)事件都是可以触发的,但是在平板中事件不触发
解决方法:
只需要阻止元素发生默认的行为
// 触摸移动
touchMove($event:any){
$event.preventDefault();
}
本文标题:平板 touchMove事件不触发
本文链接:https://www.haomeiwen.com/subject/dqptcftx.html
网友评论