-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination issue when slides are looped and slidesPerView is greater than 1 #6415
Comments
I am facing a similar issue, I am currently trying to create a slider by setting the slidesperview to a decimal value of 1.3, so that it shows a part of the previous and next slide. It functions correctly with slidesperview: 1.3 and centeredslides which shows a part of the nextslide on page 1, then a part of the next and previous slide on page if there are 3 or more slides available. But with the addition of the setting of loop the middle slide will be the 3rd slide and when toggled it would move to the first slide and then 3rd slide back and forth |
Just a note here (if this helps to identify the issue): when you click on the last pagination bullet and it fails to bring you to slide 9, using "next" navigation arrow fixes the last bullet point and shifts this bug to bullet number 2. Every time you use navigation the bug moves to |
this also happens when I try to use swiper/elements
the pagination bullets will out of sync when slides loop. |
I might find the problem here, this pagination's problem will happen if slide don't have I'm using angular, because swiper removed angular binding, I've created my own version of component. and there are mostly 2 situations:
So I manually call the |
Check that this is really a bug
Reproduction link
https://codesandbox.io/s/swiper-react-infinite-loop-forked-b3172c?file=/src/App.jsx
Bug description
Last pagination bullet fails to navigate to the last view when slides are looped and slidesPerView is greater than 1.
Expected Behavior
When the last bullet point is clicked, Slide 9 and 1 are displayed.
Actual Behavior
When the last bullet point is clicked, Slide 8 and 9 are displayed.
Swiper version
9.0.0
Platform/Target and Browser Versions
Windows, Chrome Version 109.0.5414.120
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: