Answers for "Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page"

0

Added non-passive event listener to a scroll-blocking 'wheel' event

document.addEventListener('touchstart', handler, {passive: true});
Posted by: Guest on January-12-2021
1

Added non-passive event listener

elementRef.addEventListener("touchstart", handler, passiveEvent);
Posted by: Guest on November-22-2020

Code answers related to "Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page"

Browse Popular Code Answers by Language