https://www.chromestatus.com/features/5093566007214080

移动端滑动报错:Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080

js事件中preventDefault 这个参数出现了冲突。

解决方法参考:https://www.jianshu.com/p/04bf173826aa

用了第二种方法,在css中加入样式

* { touch-action: pan-y; }
posted @ 2019-02-14 09:12  别动我的猫  阅读(886)  评论(0编辑  收藏  举报