-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Chrome] Unable to preventDefault inside passive event listener due to target being treated as passive. #799
Comments
Same |
same |
Same. |
Same |
I also discovered same issue, Hope it should be solved soon. |
Same issue |
not a solution. But you can download previous Chrome versions to test this problem. |
Fix for issue with Chrome 56 preventDefault inside passive event listener
Fixed it!As stated by Google, they've changed the behavior of passive event listeners only for window, document or body elements. The fix is simply to force the listeners to be active for those elements. jquery.nicescroll/jquery.nicescroll.js Line 2555 in 347d35e
with this https://github.com/Tolc/jquery.nicescroll/blob/6876279cb895bc6ad892c71f8a327dce85e18e9b/jquery.nicescroll.js#L2555 (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);
I've created a pull request #802 |
Paging @inuyaksa because this is breaking on Chrome... |
@Tolc u save ma lyf dude, bunch of thx 👍 |
İt Worked. Thanx.. |
@Owen2008 seems like it is an unrelated issue. |
Am facing same issue. Please suggest me appropriate solution for this error. |
same |
The fix works but if you want the fix for the minified file then find the following...
Or pretty print the min.js and goto line 1082, and replace with the following....
Hope this is helpful. |
thanks! works fine |
A simple fix:
|
it solved my problem. (Y) |
same |
Just Add below CSS. it will solve your issue. :) .owl-carousel { |
I needed it, thanks! |
the second styling worked for me! Thanks! |
It works for me! |
I am having the same error message but with a different JS file. smoothPageScroll.min.js?ver=5.2.3:1 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312 |
Thanks man!! Great! |
i am having the same error when i am using plotly graph. i tried to add to the plotly canvas the css params but this is not seems to work. |
I am having the same error here: https://www.cadbury.co.uk/ |
Thanks a lot. It is helpful for me. |
Is it me or the nice scroll prevent
|
I am having the same error message but with a different JS file. smoothPageScroll.min.js?ver=5.2.3:1 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312 |
Thanks,it works ! |
|
Thank you so much, II have successfully fixed the error <3 |
It worked, thanks. |
i need help here I m Getting errors in these lines
showing chrome error in this line preventDefault @ jquery.nicescroll.min.js:10 i can show all here please take a look into this |
I found the same issue for our website.
|
same problem [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312
5331 : how can we fix it? |
install it from specific repository temporarily did the trick thanks @Tolc |
Using the version here worked for me as well... https://github.com/Tolc/jquery.nicescroll/blob/master/jquery.nicescroll.js |
It worked for me! |
Have you folks seen this? Easy fix: |
Fix for issue #799: Chrome 56 preventDefault inside passive event listener
Facing same issue in shopify . _preventDefault: function(event) { |
first one worked for me, Thnx :) |
I get this error in Chrome Console and a the same error will continuously generate as I scroll:
nicescroll.js:1 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312
The text was updated successfully, but these errors were encountered: