Getting "Added non-passive event listener to a scroll-blocking 'touchstart' event." warning in the latest chrome browser
Closed this issue · 6 comments
Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
Hi @dhinesh03,
thanks for the recommendation.
mind providing mode details? the link doesn't work
I believe this is what you are referring to
https://stackoverflow.com/questions/37721782/what-are-passive-event-listeners
Looks pretty easy to implement from my quick reading - https://svelte.dev/docs/element-directives#on-eventname
<div on:touchstart|passive={handleTouchStart}>
will work on it later today,
Sincerely,
Looks pretty easy to implement from my quick reading - https://svelte.dev/docs/element-directives#on-eventname
<div on:touchstart|passive={handleTouchStart}>
will work on it later today,
Sincerely,
Thank you so much
I just released an elegant fix in master.
it should work smoothly