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

1

Added non-passive event listener

elementRef.addEventListener("touchstart", handler, passiveEvent);
Posted by: Guest on November-22-2020
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

Code answers related to "Added non-passive event listener to a scroll-blocking 'wheel' event"

Code answers related to "Javascript"

Browse Popular Code Answers by Language