Unable to preventDefault inside passive event listener due to target being treated as passive.

在做下拉刷新时候遇到控制台报错

Unable to preventDefault inside passive event listener due to target being treated as passive.

解决方法:使用css属性

html{
touch-action: none;
}

参考文章:
https://segmentfault.com/a/1190000008512184

猜你喜欢

转载自www.cnblogs.com/yinshiru/p/10310603.html