This repository was archived by the owner on Mar 19, 2018. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork141
An extension to the DOM event pattern to allow authors to disable support for preventDefault
License
NotificationsYou must be signed in to change notification settings
WICG/EventListenerOptions
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This work is now part of theofficial WHATWG DOM spec. Please file any issues/pull requests there. This repository (and its resources / discussions) are only preserved here as an archive.
Anextension to the DOM event pattern to allow listeners to disable support forpreventDefault
, primarily to enable scroll performance optimizations. See theexplainer document for an overview.
- See the maincommit in the DOM specification orpull request for full details.
- The key parts of the spec affected by this areEventTarget,Observing event listeners, andpreventDefault
- Touch Events hasbeen updated to describe the performance optimization.
- Interventions issue 18 tracks the plan to "intervene" and force touch listeners to be passive in scenarios where the compat risk is low but the perf benefit large.
- SeeCanIUse entry for passive event listeners
- Chromium:shipping in Chrome 51 (launch bug)
- Chromium bug tracking thenext step of automatically opting some listeners into passive behavior.
- WebKit:EventListenerOptions support andperformance optimization for touch listeners landed.
- Performance optimization of wheel listeners not yet implemented.
- Firefox:Landed - planned toship in Firefox 49
- DOM4 Polyfill, or samplepolyfill here
About
An extension to the DOM event pattern to allow authors to disable support for preventDefault
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published