davidjerleke / embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.
https://www.embla-carousel.com
MIT License
5.39k stars 166 forks source link

SlideRegistry shouldn't group slides when `containScroll:'trimSnaps'` option is set #629

Closed davidjerleke closed 7 months ago

davidjerleke commented 7 months ago

👉 Credit goes to @sarussss. Discussed in https://github.com/davidjerleke/embla-carousel/discussions/625.

Bug is related to

Embla Carousel version

Describe the bug

CodeSandbox

Expected behavior

Originally posted by **davidjerleke** November 10, 2023 When containScroll: 'keepSnaps' is set, it groups slides in the registry but it shouldn't.