when want to prevent the default behavior of wheel event, chrome says:
index.js:71 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312
Hi, thanks for the note. To avoid the warning, you can either attach the wheel event on a container other than document, or use the { passive: false } flag in addEventListener(). An updated implementation is presented in the final version of the article.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
hey, thanks for great article,
when want to prevent the default behavior of
wheel
event, chrome says:Hi, thanks for the note. To avoid the warning, you can either attach the
wheel
event on a container other thandocument
, or use the{ passive: false }
flag inaddEventListener()
. An updated implementation is presented in the final version of the article.