Open tungtrinh opened 5 years ago
:+1:
+1
It's someone to help?
Came here to check for existing issues as we discovered the errors, too.
There is some initial work in https://github.com/ganlanyuan/tiny-slider/pull/357 to fix this.
+1 over here!
+1
Any update on this issue?
!up still have error in console
+1
+1
+1
+1
Adding preventScrollOnTouch: 'auto'
to my options when calling tns fixed this issue for me.
@petertoh thank you savior!
preventScrollOnTouch: 'auto'
didn't work for me, but preventScrollOnTouch: 'force'
clears up the error. It seem like one of those should resolve the error until there is a permanent fix.
+1
+1
+1
Both preventScrollOnTouch: 'auto'
and preventScrollOnTouch: 'force'
flagged the following issue in Lighthouse.
Does not use passive listeners to improve scrolling performance
jQuery had a similar problem, sadly it was never fixed.
preventScrollOnTouch: 'auto'
didn't work for me, butpreventScrollOnTouch: 'force'
clears up the error. It seem like one of those should resolve the error until there is a permanent fix.
Its helpful, thanks :)
Issue description: When swiping slider on mobile, browser leave warning in console: Unable to preventDefault inside passive event listener invocation.
Demo link/slider setting: Default
Tiny-slider version: 2.9.1 Browser name && version: Chrome OS name && version: Emulator/Android
The warning point to this method