brainhubeu / react-carousel

A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)
https://brainhub.eu/
MIT License
1.07k stars 164 forks source link

Carousel fails when we use the itemWidth setting along with the infinite setting. #730

Open jonathandsouza opened 2 years ago

jonathandsouza commented 2 years ago

Hi there,

First of all, I would like to thank you for this amazing plugin it almost checks all of my requirements.

However, I did find an issue when I use the itemWidth setting along with the infinite setting. Please find the reproduction steps below.

example: https://stackblitz.com/edit/react-ts-ke7fxn?file=index.tsx output: https://react-ts-ke7fxn.stackblitz.io

If you notice the output, the page is completely blank.

Any guidance in solving this issue would be much appreciated.

tinypell3ts commented 2 years ago

I'm having the same issue, but I'm not using itemWidth.

KafkaWannaFly commented 2 years ago

Me too. Also the same issue with the infinite plugin. The items inside the carousel appear for a short moment and disappear away.