DEV Community

[Comment from a deleted post]
Collapse
 
robole profile image
Rob OLeary

Just looking at passive event listeners further, Google says

The basic scroll event cannot be canceled, so it does not need to be set passive. However, you should still prevent expensive work from being completed in the handler.

So passive is superfluous in this instance it appears.