Answers for "[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make"

1

Added non-passive event listener

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

Code answers related to "[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make"

Browse Popular Code Answers by Language