Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code example for passive option is misleading #28997

Closed
yangmingshan opened this issue Sep 8, 2023 · 0 comments · Fixed by #29083
Closed

Code example for passive option is misleading #28997

yangmingshan opened this issue Sep 8, 2023 · 0 comments · Fixed by #29083
Labels
Content:WebAPI Web API docs

Comments

@yangmingshan
Copy link

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 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?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@yangmingshan yangmingshan added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Sep 8, 2023
@github-actions github-actions bot added the Content:WebAPI Web API docs label Sep 8, 2023
@Josh-Cena Josh-Cena removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants