How do I resolve the Unable to preventDefault inside passive event listener due to target being treated as passive error?
Hello, tell me how to fix the error.
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See
I downloaded a free template, I'm trying to adapt it to my site.
When scrolling, an error pops into the Console.
Attached a piece of HTML / CSS (don't pay attention to errors due to missing images, etc.)
In JS, swears at line 51 - function ssc_wheel (a)
Site in PHP, JS only in a template (I'm not very strong in JS), help me fix it.
Well, the error itself says it all - you cannot call preventDefault inside passive handlers.
Read more hereAnonymous
To place the code, please use CodePen or similar tool. Thanks you!