inuyaksa / jquery.nicescroll

nicescroll plugin for jquery - scrollbars like iphone/ipad
https://nicescroll.areaaperta.com/
3.6k stars 1.67k forks source link

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

Open justmedanny opened 5 years ago

justmedanny commented 5 years ago

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

whitia commented 3 years ago

修正は機能しますが、縮小されたファイルの修正が必要な場合は、次を見つけてください...

}), Y && i ? e.addEventListener(o, t, {

または、min.jsとgoto行1082をきれいに印刷して、次のように置き換えます。

}), Y && (i || e == l || e == l.body || e == a) ? e.addEventListener(o, t, {

これがお役に立てば幸いです。 リッチ

It worked for me! Thanks.

zipzit commented 2 years ago

Have you folks seen this?
https://github.com/zzarcon/default-passive-events

Easy fix: <script src="https://unpkg.com/default-passive-events"></script>

abhaybabu96 commented 2 years ago

Facing same issue in shopify .

_preventDefault: function(event) { event.preventDefault ? event.preventDefault() : (event.returnValue = false); [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See },

denvergeeks commented 2 years ago

Try this: https://github.com/zzarcon/default-passive-events

ehsaanmiraj commented 1 year ago

Just Add below CSS. it will solve your issue. :) .owl-carousel { -ms-touch-action: pan-y; touch-action: pan-y; } or .owl-carousel { -ms-touch-action: none; touch-action: none; }

I needed it, thanks!

first one worked for me, Thnx :)