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

posted @ 2019-01-23 18:13  我在等风也等你啊  阅读(1563)  评论(0编辑  收藏  举报