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.
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.