Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose "passive" boolean in the EventListenerOptions dictionary. #819

Closed
kolkonos opened this issue Jun 23, 2024 · 0 comments · Fixed by #856
Closed

Expose "passive" boolean in the EventListenerOptions dictionary. #819

kolkonos opened this issue Jun 23, 2024 · 0 comments · Fixed by #856

Comments

@kolkonos
Copy link

While using the plugin, the console receives many alerts/suggestions in chrome regarding passive event listeners, and how adding the option would improve scrolling and transitions.

Simple solution is to modify line 29 in the src/handlers.js

from:
target.addEventListener(type, handlers[type]);
to:
target.addEventListener(type, handlers[type],{passive:true});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant