davidjerleke / embla-carousel

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

Broken Carousel Navigation #401

Closed esanchezvz closed 1 year ago

esanchezvz commented 1 year ago

Bug is related to

Embla Carousel version

Describe the bug

CodeSandbox

Steps to reproduce

There really are no steps to reproduce, just try and drag the slider and you will see it does not drag and the next button is not enabled

Expected behavior

Additional context

https://user-images.githubusercontent.com/41240399/205138076-2adda6ef-aa40-426e-9567-242e775e2da2.mov

davidjerleke commented 1 year ago

Hi @esanchezvz,

Thanks for your bug report. This is not a bug but rather caused by an incorrect HTML setup on your side. You're only rendering Slide 1 inside the container that will scroll the slides. The rest of the slides should also be children to the container and not siblings:

slide-container

Best, David

esanchezvz commented 1 year ago

Huh, interesting. I'll take a look at whats going on. thanks for your quick response. Will close the issue then.