[Violation] Added non-passive event listener to a scroll-blocking ‘mousewheel‘ event.
ElementUI报错(警告)[Violation] Added non-passive event listener to a scroll-blocking ‘mousewheel’ event. see …问题原因简述:在某次谷歌浏览器更新,优化了关于页面滚动的一些方法,使得页面更加流畅。Element建议使用此特性。详细:dj0379的文章:让页面滑动流畅得飞起的新特性:Passive Event Listeners解决步骤项目中加入依赖"default-passive-event
原创
2020-09-01 17:33:12 ·
1017 阅读 ·
0 评论