How do I resolve the Unable to preventDefault inside passive event listener due to target being treated as passive error?

  • 0
    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.
    Thanks.
    JavaScript Dominic Roy, Jul 16, 2019

  • 1 Answers
  • 0
    Well, the error itself says it all - you cannot call preventDefault inside passive handlers.

    Read more here
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!