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
If loop mode is activated and slidesPerView is greater than 1, navigating through the slides by pagination buttons breaks at some points. It does not matter to what value slidesPerGroup is set, except if it is identical to slidesPerView and the total amount of slides is a multiple of that value, i. e. 8 slides total and sPV and sPG equal 4. In that case it seems to work fine, otherwise not.
Expected Behavior
Clicking any of the pagination buttons scrolls to the expected (set of) slides.
Actual Behavior
The pagination seems to work for some clicks, but at some point results in one or several of the following:
Clicking any pagination button has no effect at all
Swiper scrolls to the correct position, but with excessive scrolling
Swiper scrolls to a random position and does not show all slides, e. g. only 2 of 4
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-infinite-loop-forked-9jzp84?file=%2Findex.html%3A84%2C18
Bug description
If loop mode is activated and
slidesPerView
is greater than 1, navigating through the slides by pagination buttons breaks at some points. It does not matter to what valueslidesPerGroup
is set, except if it is identical toslidesPerView
and the total amount of slides is a multiple of that value, i. e. 8 slides total and sPV and sPG equal 4. In that case it seems to work fine, otherwise not.Expected Behavior
Clicking any of the pagination buttons scrolls to the expected (set of) slides.
Actual Behavior
The pagination seems to work for some clicks, but at some point results in one or several of the following:
Swiper version
9.2.4, 10.0.4
Platform/Target and Browser Versions
macOS Chrome 114, macOS Firefox 115, macOS Safari 16
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: