anvaka / anvaka/wheel

Support for passive event listeners

Open
#7 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
30
Forks
7
PR merge metrics
No merged PRs in 30d

Description

There is new option called 'passive' presented in the [DOM spec](https://dom.spec.whatwg.org/#observing-event-listeners) with good explanation [here](https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md). At least Google Chrome started to show in console messages like '[Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive.' So would be great if we'll have an ability to pass additional options to addWheelListener to enable this feature. Polyfills are available on the [explanation page](https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the addWheelListener entry point and review the DOM event-listener option and feature-detection explanations linked in the issue. The work is done when callers can pass the passive option and the wheel listener uses it where supported without breaking browser compatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.