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
with the options "loop" and "centeredSlides" and i click the bullets in the following order: 3. bullet => last bullet, there is no smooth transition from my current slide (Slide 3) to the target slide (Slide 6). Instead there is a jump to the first slide (Slide 1) and a transition to the last slide (Slide 6):
swiper_jump.webm
In the swiper code the slideToLoop function is calling the function loopFix under specific conditions (which are fulfilled in the described behaviour) and this seems to be causing the issue:
I know that there exists already a similar issue: #7270. But the described behaviour there is partially about the pagination buttons which are not relevant for this issue.
Note: Using swiper v10 in the sandbox, the jumping does not happen
Expected Behavior
Smooth transition to from the current slide to the target slide (clicking the bullets in the described order)
Actual Behavior
No Smooth transition to from the current slide to the target slide. Instead there is a jump (clicking the bullets in the described order)
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-infinite-loop-forked-3ckqtm
Bug description
When using a swiper config like
with the options "loop" and "centeredSlides" and i click the bullets in the following order: 3. bullet => last bullet, there is no smooth transition from my current slide (Slide 3) to the target slide (Slide 6). Instead there is a jump to the first slide (Slide 1) and a transition to the last slide (Slide 6):
swiper_jump.webm
In the swiper code the
slideToLoop
function is calling the functionloopFix
under specific conditions (which are fulfilled in the described behaviour) and this seems to be causing the issue:I know that there exists already a similar issue: #7270. But the described behaviour there is partially about the pagination buttons which are not relevant for this issue.
Note: Using swiper v10 in the sandbox, the jumping does not happen
Expected Behavior
Smooth transition to from the current slide to the target slide (clicking the bullets in the described order)
Actual Behavior
No Smooth transition to from the current slide to the target slide. Instead there is a jump (clicking the bullets in the described order)
Swiper version
11.2.1
Platform/Target and Browser Versions
macOS, Chrome
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: