embla-carousel icon indicating copy to clipboard operation
embla-carousel copied to clipboard

[Bug]: Slide slightly shifted when slide content is changing

Open leo-paz opened this issue 9 months ago • 3 comments

Which variants of Embla Carousel are you using?

  • [ ] embla-carousel (Core)
  • [X] embla-carousel-react
  • [ ] embla-carousel-vue
  • [ ] embla-carousel-svelte
  • [ ] embla-carousel-autoplay
  • [ ] embla-carousel-auto-scroll
  • [ ] embla-carousel-solid
  • [ ] embla-carousel-auto-height
  • [ ] embla-carousel-class-names
  • [ ] embla-carousel-docs (Documentation)
  • [ ] embla-carousel-docs (Generator)

Steps to reproduce

The bug occurs when I am updating the slide content:

https://github.com/davidjerleke/embla-carousel/assets/26093865/7e110dcf-9327-4312-bc0b-3a2ce0a9330b

Expected Behavior

The slide shouldn't slightly shift to the left and the user has to scroll to another tab and scroll back to fix it.

Additional Context

Looking to see if someone has run into it and can provide a quick fix. I can provide a sandbox if it isn't something obvious.

What browsers are you seeing the problem on?

Chrome

Version

v^8.0.0

CodeSandbox

No response

Before submitting

  • [X] I've made research efforts and searched the documentation
  • [X] I've searched for existing issues
  • [X] I agree to follow this project's Contributing Guidelines for bug reports

leo-paz avatar May 06 '24 18:05 leo-paz