Closed ValGeorgiev closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/nuka-carousel/nuka-carousel/DiofZQGvCd9d78LxNoEsZBzAJzbi
✅ Preview: https://nuka-carousel-git-fix-reminder-slides-nuka-carousel.vercel.app
Description
As it was removed firstly, we are migrating
scrollPage: reminded
back to v5. Currently if we have v5 carousel withoutwrapAround
and slides are not even to slidesToShow, we can see white screen in the end of the carousel. This can be prevented by adding scrollPage: reminded property.This PR covers the straightforward scenario when slidesToShow and slidesToScroll are equal. There is no point slidesToScroll is more than slidesToShow, because some slides will be missed. Next PR will cover the scenario when slidesToScroll is less than slidesToShow.