Skip to content
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

Bug with looped, controlled dual swipers, with different slidesPerView size #526

Open
MykolaPron opened this issue Nov 12, 2024 · 0 comments

Comments

@MykolaPron
Copy link

MykolaPron commented Nov 12, 2024

Hi i find interestin bug.

We have to swipers ("primary-swiper" and "secondary-swiper"), which controlled each other.
"primary-swiper" has slidesPerView = 1 and "secondary-swiper" slidesPerView = 4, total items = 5.
Issues:

  1. When you slide "primary-swiper" to right side (show prev slide), "secondary-swiper" wors fine. But when you start slide"primary-swiper", to left side (show next slide), "secondary-swiper" have problems with adding items to end.
  2. When you slide "secondary-swiper" to right side (show prev slide), "primary-swiper" works fine. But when you start slide "secondary-swiper" to left side (show next slide), "primary-swiper" show the same item

codesandbox

My be i have mistake in setting...

Used

  • react v18
  • swiper v11.1.14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant