使用 swiper.js jquerymobile.js 等移动端js库的时候,如果使用了滑动事件,不时会看到报错:“Unable to preventDefault inside passive event listener due to target being treated as passive”。但奇怪的是脚本运行正常,而且在不同的库和项目中我都能看见这种情况,我觉得不是个例。所以我想问一下,出现这个问题通常是什么原因,各位又是如何解决、排查这个问题的?
添加回答
举报
0/150
提交
取消