Skip to content

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

@MykolaPron

Description

@MykolaPron

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions