谷歌浏览器警告:Added non-passive event listener to a scroll-blocking ‘wheel‘ event

梁丘霖
2023-12-01

谷歌浏览器警告:

[Violation] Added non-passive event listener to a scroll-blocking ‘wheel’ event. Consider marking event handler as ‘passive’ to make the page more responsive.

解决方法

> npm install --save default-passive-events

main.js

import 'default-passive-events'
 类似资料: