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

ERROR: [Intervention] Unable to preventDefault .......... #825

Open
zdimaz opened this issue Aug 4, 2020 · 7 comments
Open

ERROR: [Intervention] Unable to preventDefault .......... #825

zdimaz opened this issue Aug 4, 2020 · 7 comments

Comments

@zdimaz
Copy link

zdimaz commented Aug 4, 2020

jquery.nicescroll.min.js?ver=1:2 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312

@Shaveyy
Copy link

Shaveyy commented Aug 11, 2020

This pull request resolves the issue #802

@zdimaz
Copy link
Author

zdimaz commented Aug 11, 2020

[Chrome] Unable to preventDefault inside passive event listener due to target being treated as passive.

Bugs not fix ((((
CRY CRY CRY (
Help bro pls

@andreweberle
Copy link

andreweberle commented Aug 26, 2020

@zdimaz This is a bit hacky however if you got to line 2903 in jquery.nicescroll.js you can comment out the error line.

`var chk = doScrollRelative(px, py, chkscroll, true);

        if (chk) {
            if (chkscroll) hasparentscrollingphase = true;
        } else {
            hasparentscrollingphase = false;
            e.stopImmediatePropagation();
            //e.preventDefault()
            return;
        }`

@nftstudio
Copy link

You Can search Code:
(passiveSupported && active) ? el.addEventListener(name, fn, { passive: false, capture: bubble }) : el.addEventListener(name, fn, bubble || false);
Then Changed it:
(passiveSupported && (active || el == window.document || el == window.document.body || el == window)) ? el.addEventListener(name, fn, { passive: false, capture: bubble }) : el.addEventListener(name, fn, bubble || false);

And Enjoy !

@kidzen
Copy link

kidzen commented Mar 27, 2021

npm i tolc/jquery.nicescroll#master

install it from specific repository temporarily did the trick

@enzedonline
Copy link

enzedonline commented Aug 10, 2021

Using the min.js, it's coming from b>k - comment out the last two lines of that:

          z(r, i, t, !0)
            // ? void (t && (q = !0))
            // : ((q = !1), e.stopImmediatePropagation(), e.preventDefault())
            )

@dopeabeam2
Copy link

Using the min.js, it's coming from b>k - comment out the last two lines of that:

          z(r, i, t, !0)
            // ? void (t && (q = !0))
            // : ((q = !1), e.stopImmediatePropagation(), e.preventDefault())
            )

Please fix my issues am getting those. seeing errors on http://dopenews.in You can check i tried to use 3.7.6 version but i cant reload by site cant even scroll wih this version so am using 3.5.1 version but there is an error please check that

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

7 participants