-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work with scroll snapping #60
Comments
@tonygustafsson, hello! I would recommend to use the corresponding libraries for creating a carousel. There are plenty of ones. This library is designated to solve one common simple task. Although, you can make scroll-snap work with this library. You should disable scroll-snap while dragging for this. But it will produce another problem: when you return scroll-snap the container will be scrolled immediately without any easing (on desktop). That's how it works. As I know all carousels that allows dragging slides by mouse and implements some sort of scroll snap, do it on their own by scripts. |
Just remove class snap-x onStartScroll and restore onEndScroll |
|
I planned to use this great tool for creating a carousel. I didn't want a continous scroll but rather the scrolling to snap to the items with scroll-snap-type: x mandatory. This makes the scrolling area not scrollable at all.
The text was updated successfully, but these errors were encountered: