infiniteLoop is broken since 3.2.22
See original GitHub issueDescribe the bug
The infiniteLoop
option does not work anymore with version 3.2.22. The carousel does not go in a loop but jumps from the end to the start or from start to end.
To Reproduce Install version 3.2.22 and create a carousel with at least 2 slides. Go to the last slide and then one more. It should go the first slide in a loop but instead it jumps back to the first slide.
Expected behavior It should go in a loop.
Additional context
The infiniteLoop
option works as expected with 3.2.21. Installing this exact version “fixes” it. The weird thing is that if you install the newest version and then comment out the only change made to the code (https://github.com/leandrowd/react-responsive-carousel/commit/8cc7480c055d5824a23708a003be0941a364e8a2) it does not fix the problem. So this change does not seem to cause the bug. Maybe the build process changed and the bug was introduced there?
Video from the storybook
You can see the bug in the storybook demo. As you can see the infiniteLoop
option is enabled but it just jumps back. I would like to show the difference to the previous version but i don’t know if thats possible in storybooks.
I would help I would like to contribute but i don’t know what else could be the problem to this instead of the only change made to the code and I don’t know about your build process. Maybe you find the problem or can give me more info where to look.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:7
Top GitHub Comments
Thanks for sharing this issue! For now, I’ll revert to 3.2.21 👍
Good suggestion, I’ll try that soon!!