原文:vue中,解决chrome下,的warning, Added non-passive event listener to a scroll-blocking ‘mousewheel‘ event 问题

一 警告信息如下:vue element项目中,解决chrome下的passive警告问题 element ui.common.js c : Violation Added non passive event listener to a scroll blocking mousewheel event. Consider marking event handler as passive to ma ...

2021-10-12 15:31 0 977 推荐指数:

查看详情

element-ui遇到得坑一:Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking handler as 'passive' to make the page more

字面大概意思:在滚动阻止的“ mousewheel”事件添加了非被动事件侦听器。 考虑将处理程序标记为“被动”以使页面更具响应性。chrome 浏览器检测机制,给予指定属性冒事性能就更好。没法验证。解决目的:强迫症晚期看不惯 debug 时候有任何的 warning.... 解决 ...

Fri Oct 09 19:24:00 CST 2020 0 1585
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM