Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Beware of passive event listeners Reply To: Beware of passive event listeners

#285745
Shikkediel
Participant

If the console gives messages such as these, the above is relevant:

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.

Most basic of demos – Chrome scrolls despite preventDefault() (console gives message):

codepen.io/anon/pen/RObdoM