rcbyr / keen-slider

The HTML touch slider carousel with the most native feeling you will get.

Home Page:https://keen-slider.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to handle inertial scrolling with trackpads?

rik-iso opened this issue · comments

Hi! Love the slider.

I'm trying to implement trackpad scrolling support using your wheel example.

However, this behaves pretty badly on a Mac trackpad (which fires a lot of inertial scroll events) when rubberband is enabled. The slider scrolls out into the distance, slowing down slowly. See video.

It would be nice if there was a 'limit' to the rubberband length or something similar. Is there a good way to do this or example?

Thanks!

Screen.Recording.2023-10-05.at.12.44.15-1.mov