滑动报 Unable to preventDefault inside passive event listener due to target being treated as passive 的解决方法

google浏览器滑动出现以下问题:

 

 

解决办法如下:
html元素下添加样式 touch-action: none;

html{
   touch-action:none;
}

 

posted @ 2019-10-08 18:03  rachelch  阅读(452)  评论(0编辑  收藏  举报