Touch event listeners are now passive by default, making scrolling faster on mobile

Published: | Categories: DOM


Starting with Firefox 61, touchstart and touchmove event listeners on window, document and document.body will be treated as passive by default, which means these events cannot be cancelled using preventDefault() within the listeners unless you explicitly set addEventListener’s passive option false.

The scrolling intervention aims to improve touch scrolling performance on mobile devices as described in this article on the Google Developers site. Given that Chrome 56 shipped in January 2017 has already adopted the new behaviour, the compatibility risk should be low.