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

Thumbs scroll is off when thumbs have slidesPerView and slidesPerGroup #4208

Closed
HandHugs opened this issue Feb 9, 2021 · 0 comments
Closed

Comments

@HandHugs
Copy link

HandHugs commented Feb 9, 2021

This is a (multiple allowed):

  • [x ] bug

Swiper Version: 6.4.11

Platform/Target and Browser Versions: Desktop Mac/Chrome

Live Link or JSFiddle/Codepen or website with issue:
https://stackblitz.com/edit/swiper-thumbs-issue-slidesperview?file=index.html

What you did
I have a horizontal Swiper with horizontal, grouped thumbs. For example with 10 thumbs. I click the thumb slides to navigate the big horizontal Swiper. Additionally I have arrows Next/prev to slide the thumbs.

Expected Behavior
If I click a thumb the following should happen:

the main swiper should show new slide
the thumb swiper should remain in its position showing the currently active thumb I clicked

If I swipe to a new slide in the main (top) gallery that has a thumbnail not currently in view, the thumbnail gallery should scroll to the correct group.

Actual Behavior
the main swiper shows new slide -> this part is fine
if I click the first or last of my actually visible thumbs (for example 1 or 6) it works correctly
if I click 2-5 thumbs the thumb-swiper is slided to the prev thumbs.

If I swipe to a new slide in the main (top) gallery that has a thumbnail not currently in view, the active thumbnail remains hidden (thumb slider does not scroll to correct grouping).

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