[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. 报错

在使用weui的时候,滚动报错,解决方法如下:

增加全局样式

* {
touch-action: pan-y;
}

猜你喜欢

转载自www.cnblogs.com/zhinian-/p/12337530.html