Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passive Error with Google Chrome #218

Closed
BenDuh opened this issue Jul 12, 2021 · 1 comment
Closed

Passive Error with Google Chrome #218

BenDuh opened this issue Jul 12, 2021 · 1 comment

Comments

@BenDuh
Copy link

BenDuh commented Jul 12, 2021

Hi,

I'm using this function in my code to be able to switch vertical and horizontal scrolling :

$("html, body, *")
    .off("mousewheel")
    .mousewheel(function (e, delta) {
         this.scrollTop -= delta / 2; //scrollLeft for horizontal
        //my code
   }

I can't use {passive: true} with this function, can u explain what i did wrong ?

@BenDuh BenDuh changed the title Passive Error Google Passive Error with Google Chrome Jul 12, 2021
@mgol
Copy link
Member

mgol commented Jul 12, 2021

Duplicate of #202. Passive event handler support is blocked on jquery/jquery#2871.

@mgol mgol closed this as completed Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants