default-passive-events
default-passive-events copied to clipboard
About scroll event
Hello 👋
Interesting utility, I'm keen to give it a spin.
There is something I would like to share about scroll event. I've read some docs recently and I've noticed this:
You don't need to worry about the value of passive for the basic scroll event. Since it can't be canceled, event listeners can't block page rendering anyway.
from here
and another note from here
Note: The basic scroll event cannot be canceled, so it does not need to be set passive.
What are your thoughts on this matter?