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

Thumb Swiper shows wrong thumbnail group when using the "next" button on the main Swiper #4615

Closed
Nazrinn opened this issue May 28, 2021 · 0 comments

Comments

@Nazrinn
Copy link

Nazrinn commented May 28, 2021

  • Swiper Version: 6.6.2
  • Platform/Target and Browser Versions: Chrome v90 on Windows 10

What You Did

Wanting to test my ideal swiper functionalities before going into more complex production, I locally created a barebone version of this design using a Swiper demo (the thumb loop one).

So far, I have made the thumb grouping and next/prev button working as desired (but not intended). Demo.

Expected Behavior

When using the next/prev buttons on the single image Swiper, the thumbnail Swiper should show the group with the active thumbnail.

Actual Behavior

When using the next button on the single image Swiper, the thumbnail Swiper shows the active thumbnail group ONLY once I reach the second image in the thumbnail group. For some reason this behavior only happens when using the next button. The prev button works as expected, always showing the correct thumbnail group.

This happens no matter how many image is in the slidesPerView and slidesPerGroup parameters.

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