You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What specific section or headline is this issue about?
Improving scrolling performance with passive listeners
What information was incorrect, unhelpful, or incomplete?
The code use scroll event as example, but the scroll event can't be canceled. For many years I thought scroll event can be canceled, and need pass { passive: true } to the addEventListener.
What did you expect to see?
Use wheel or touch event as example.
Do you have any supporting links, references, or citations?
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
What specific section or headline is this issue about?
Improving scrolling performance with passive listeners
What information was incorrect, unhelpful, or incomplete?
The code use
scroll
event as example, but thescroll
event can't be canceled. For many years I thoughtscroll
event can be canceled, and need pass{ passive: true }
to the addEventListener.What did you expect to see?
Use
wheel
ortouch
event as example.Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/eventtarget/addeventlistener
The text was updated successfully, but these errors were encountered: