question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Touch events on splide slider broke smooth scroll

See original GitHub issue

Environment

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:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
idiotWucommented, Jan 24, 2022

Yeah, I totally agree. I’m not too fond of using it on mobile devices either 😆

0reactions
tdaulbaevcommented, Jan 24, 2022

there was an error in my implementation, now everything works!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found