Skip to content

Left scrolling issue for virtual slides due to thumbs integration #8001

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

Open
5 of 6 tasks
AndrzejW2016 opened this issue May 26, 2025 · 0 comments
Open
5 of 6 tasks

Comments

@AndrzejW2016
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/error-github-swiper-thumbs-gallery-forked-3gcn85

Bug description

There is a problem when using Swiper v11.2.8 with virtual slides and thumbs. After moving forward through several slides - especially reaching the end - you cannot scroll back to previous slides using the navigation buttons or swipe gestures (the thumbs gallery loses sync with the large image gallery). Swiper seems to "lock up" at the end, not properly showing the active thumbnail.

The problem seems to be related to the combination of virtual mode and thumbs. While scrolling right works as expected, scrolling left stops working after reaching the last slide or quickly moving through multiple slides.

Expected Behavior

You should be able to scroll to previous slides even after reaching the end. Navigation should work in both directions at all times, large and small galleries should show the same active photo, active photo should be visible in small gallery.

Actual Behavior

After navigating to the last slide using the navigation arrows, the thumbnail gallery (mySwiper) stops responding correctly to the left navigation:

Clicking the "Previous" button initially scrolls left, then becomes confused, scrolls badly, galleries lose sync.

The main slider (mySwiper2) seems to work correctly.

This behavior does not occur only when reaching the end of the virtual slide list.

Swiper version

@11.2.8

Platform/Target and Browser Versions

Wersja 136.0.7103.92 (Oficjalna wersja) (64-bitowa)

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
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