-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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 bug in loop mode #6460
Comments
just delete margin-right: 30px; from .swiper-slide and every thing will be ok |
Even if you delete margin+width from css for slide and set slidesPerView as 2, you will get the same bug. Just try it yourself. |
I ran into the same issue today. I am developing a website for a client, it's currently deployed on Netlify, you can check it up: To replicate the bug: I am using React, here's my carousel setup:
Also, if you scroll down, there is a Testimonials section where I am also using Swiper to display testimonials in a carousel. Here the issue seems to be even broader, I guess it's due to |
I have same bug.
This is my Swiper component setup. |
I also have the same issue with pagination as long as loop is true it brakes. |
Although this is closed, I'm guessing I have the same issue - loop and slidesperview set to auto / more than one:
In this demo the navigation appears to work, but I had another slider with same setup where navigation and mouse drag kept skipping a few slides, and navigation also wasn't advancing the bullets in correct order. I have centeredSlides; true, which seems to be part of the issue, but even with centeredSlides commented out, the pagination bullets break after a while of clicking. The pagination does not seem to know if it should go left or right when clicking the pagination bullet - sometimes from slide 5, instead of going one step right to slide 6, it'll go multiple steps left to slide 6, and leaves out the left-hand slide completely. using Swiper 9.4.1 |
I also found the same error when enabling the loop. I am attaching the sandbox example try to click the fourth bullet https://codesandbox.io/p/sandbox/8kx0sg?file=%2Fsrc%2FApp.jsx |
Check that this is really a bug
Reproduction link
https://codesandbox.io/embed/festive-browser-f1ebos?fontsize=14&hidenavigation=1&theme=dark
Bug description
Hey! Here is a bug with pagination in loop mode, when slidesPerView: "auto".
If you click the last bullet and then the third one, which index is 2, swiper don't make loopFix correctly and slide to index 1.
Expected Behavior
No response
Actual Behavior
No response
Swiper version
9.1.0
Platform/Target and Browser Versions
Chrome 110.0.5481.178
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: