default-passive-events icon indicating copy to clipboard operation
default-passive-events copied to clipboard

About scroll event

Open plesiecki opened this issue 3 years ago • 0 comments

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?

plesiecki avatar Oct 01 '20 10:10 plesiecki