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

Cannot reach the last slide with virtual slides and slidesPerView #6595

Closed
5 of 6 tasks
apaunchev opened this issue Apr 18, 2023 · 0 comments · May be fixed by ashok9k/Amazon-FE#5
Closed
5 of 6 tasks

Cannot reach the last slide with virtual slides and slidesPerView #6595

apaunchev opened this issue Apr 18, 2023 · 0 comments · May be fixed by ashok9k/Amazon-FE#5
Labels

Comments

@apaunchev
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-react-virtual-slides-forked-ibdgpq

Bug description

Navigate through the slides on the provided CodeSandbox. Instead of reaching the last slide, Swiper will go back to the second view of slides (in my example - the 3rd and 4th slides).

Dropping virtual or slidesPerView (or both) allows it to work correctly.

Works as expected on 9.0.0, something must have changed in-between.

Expected Behavior

Can navigate through all slides without skipping.

Actual Behavior

Cannot reach the last slide, then the first view is skipped.

Swiper version

9.2.3

Platform/Target and Browser Versions

Chrome, Firefox

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant