You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that the currentSlide index isn't always the exact index of the image in the carousel when using different numbers for perPage.
For example, using perPage: {0: 1, 600: 3, 1240: 5}, works visually but I will randomly get negative and inconsistent numbers for currentSlide depending on if the perPage number is at 1, 3, or 5.
I see what is going on. It does lots of calculations to put a carousel in a correct location when you use loop: true. you are right that the index should be the one that user sees. I will try to change it in future versions.
I have noticed that the
currentSlide
index isn't always the exact index of the image in the carousel when using different numbers forperPage
.For example, using
perPage: {0: 1, 600: 3, 1240: 5},
works visually but I will randomly get negative and inconsistent numbers for currentSlide depending on if theperPage
number is at 1, 3, or 5.Example in codepen shown here: https://codepen.io/EricSSartorius/pen/BrrqOv
The text was updated successfully, but these errors were encountered: