← Back to release summary

Treat Document Level Touch Event Listeners as Passive

Category
DOM
Type
New or changed feature
Status
Browser Intervention (Chrome 56)
Intent stage
None

Summary

AddEventListenerOptions defaults passive to false. With this change touchstart and touchmove listeners added to the document will default to passive:true (so that calls to preventDefault will be ignored).. If the value is explicitly provided in the AddEventListenerOptions it will continue having the value specified by the page. This is behind a flag starting in Chrome 54, and enabled by default in Chrome 56. See https://developers.google.com/web/updates/2017/01/scrolling-intervention

Standards & signals

Docs: https://developers.google.com/web/updates/2017/01/scrolling-intervention https://docs.google.com/document/d/1II7oSIpd8pK91V5kEM3tDLKcIj398jOJn8Niqy6_loI/edit https://docs.google.com/document/d/1mlUcJZHLyz1fip7CNEiU0w7JgcxBZUilvOwg0i9ZvQc/edit https://github.com/WICG/interventions/issues/18

View on chromestatus.com