v8.0.0-rc07 of embla-carousel-react and 8.0.0-rc04 of Wheel Gestures plugin
Describe the bug
When using looping and the wheel gestures plugin, the scroll snaps seem to get out sync after going through half the gallery and not match the slides. As a result if using the default option of align: center, the selected slide stops being centered. This issue is not present if looping is not used or if the trackpad/wheel gestures plugin is not used.
Not sure if this is an issue with the carousel or with the wheel gestures plugin
CodeSandbox
I wasn't able to replicate this in codesandbox because the 8.0.0-rc04 of the Wheel Gestures plugin isn't available there.
Steps to reproduce
Create a gallery with 15 slides that are variable widths and this configuration: const [emblaRef, emblaApi] = useEmblaCarousel({ loop: true, skipSnaps: true }, [WheelGesturesPlugin()]);
Expected behavior
The selected slide stays centered when using the track pad to scroll the gallery.
Bug is related to
Embla Carousel version
Describe the bug
Not sure if this is an issue with the carousel or with the wheel gestures plugin
CodeSandbox
Steps to reproduce
const [emblaRef, emblaApi] = useEmblaCarousel({ loop: true, skipSnaps: true }, [WheelGesturesPlugin()]);
Expected behavior
Additional context