Closed ronkeiser closed 3 months ago
Chrome complains of non-passive event listener violations if certain listeners are not explicitly marked as non-passive. It's kind of dumb:
non-passive event listener
We can get rid of this warning by adding the nonpassive event modifier like so:
nonpassive
on:wheel|nonpassive|preventDefault={onWheel}
This PR adds two modifiers to clean up the console warnings when using svelte-easy-crop in Chrome.
svelte-easy-crop
Thanks for this PR. It was published as https://github.com/ValentinH/svelte-easy-crop/releases/tag/v2.0.4
Problem
Chrome complains of
non-passive event listener
violations if certain listeners are not explicitly marked as non-passive. It's kind of dumb:Solution
We can get rid of this warning by adding the
nonpassive
event modifier like so:This PR adds two modifiers to clean up the console warnings when using
svelte-easy-crop
in Chrome.