javascript - Unable to preventDefault inside passive event listener - Stack Overflow

PHOTO EMBED

Tue Jun 14 2022 07:59:51 GMT+0000 (UTC)

Saved by @oday #javascript

I am getting this issue when using owl carousal and scrolling the images.

So get solved just adding below CSS in your page.






.owl-carousel {
-ms-touch-action: pan-y;
touch-action: pan-y;
}


or 

.owl-carousel {
-ms-touch-action: none;
touch-action: none;
}
content_copyCOPY

https://stackoverflow.com/questions/42101723/unable-to-preventdefault-inside-passive-event-listener