Touch events on splide slider broke smooth scroll
See original GitHub issueEnvironment
- Browser: Ubuntu Desktop Chrome 97, Android mobile chrome 97
- Version of smooth-scrollbar: 8.7.3
- Slider: https://splidejs.com (@splidejs/react-splide) ver. 0.6.17
Current Behavior
While scrolling the page, if the touch event hits at horizontal slider with drag = true, smooth scrolling breaks. The smooth transition disappears and a small movement of the fingers can cause an instant jump (delta Y) of 1000+ pixels.
Expected Behavior
When smooth scroll hitting dragable elements should not break smooth scrolling.
Steps to Reproduce
<smooth-scrollbar>
<SplideSlider />
<smooth-scrollbar>
I had the same problem with the swiper slider too.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Events - Splide
Learn how to listen to Splide events. ... Use the Splide#on() method to listen to events. ... Fired right after Splide finishes scrolling...
Read more >The JavaScript Behind Touch-Friendly Sliders - CSS-Tricks
Overflow scroll is extremely responsive to the initial touch because it's native to the browser. You don't have to wait for the event...
Read more >Manage touch events in a ViewGroup - Android Developers
Handling touch events in a ViewGroup takes special care, because it's common for a ViewGroup to have children that are targets for different ......
Read more >Building a modern carousel with CSS scroll snap, smooth ...
The first version of this blog post recommended using pointer-events: none to toggle the zoom mode on or off. It turns out that...
Read more >Handling touchscreen or mouse events: Slide Touch Handler
When the user lifts the finger again, the Slide Touch Handler continues sliding with a smooth animation calculated from speed vectors of preceding...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, I totally agree. I’m not too fond of using it on mobile devices either 😆
there was an error in my implementation, now everything works!