gs-shop / vue-slick-carousel

🚥Vue Slick Carousel with True SSR Written for ⚡Faster Luxstay
https://gs-shop.github.io/vue-slick-carousel/
Other
801 stars 186 forks source link

Fix weird behaviour of carousel after goTo functionality #239

Closed antondperera closed 2 years ago

antondperera commented 2 years ago

After navigating to a slide using goTo() functionality, carousel navigation was breaking at the last few slides. There were 2 scenarios happened based on number of slides. 1) Carousel won't allow to navigate to few slides using next arrow even though the slides can be seen if we swipe to right. 2) Carousel will ended up with last few slides and some empty spots for the last few slides instead of adjusting the landing slide when there are no enough slides for the last set.

antondperera commented 2 years ago

Please ignore this pull request. This was supposed to be added to a fork instead of this original repo of vue-slick-carousel. Will submit a separate PR with propper information and description including the fix with a propper issue later. Thanks.