首页 > 其他 > 详细

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

时间:2018-07-31 16:01:17      阅读:155      评论:0      收藏:0      [点我收藏+]

使用滚动时候,新版google浏览器,会弹出如下的警告。

技术分享图片

解决方法,可以加上* { touch-action: none; } 这句样式去掉。

其原因:https://developers.google.com/web/updates/2017/01/scrolling-intervention(是chrome为了提高页面的滑动流畅度而新折腾出来的一个东西)

分析文章:https://segmentfault.com/a/1190000007913386?_ea=1507605

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

原文:https://www.cnblogs.com/raind/p/9396299.html

(0)
(0)
   
举报
评论 一句话评论(0
分享档案
最新文章
教程昨日排行
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!