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

使用滾動時候,新版google瀏覽器,會彈出如下的警告。 解決方法,可以加上 touch action: none 這句樣式去掉。 其原因:https: developers.google.com web updates scrolling intervention 是chrome為了提高頁面的滑動流暢度而新折騰出來的一個東西 分析文章:https: segmentfault.com a ea ...

2017-03-20 15:05 0 10779 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM