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

Previous slide button jumps to first slide with FreeMode enabled #7869

Closed
5 of 6 tasks
frederikvonsperling opened this issue Jan 27, 2025 · 3 comments
Closed
5 of 6 tasks
Labels
React t0ggles Linked to the t0ggles task

Comments

@frederikvonsperling
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/jz3k3n

Bug description

When using FreeMode and Navigation, clicking on previous slide navigation button is causing the slider to move to first slide when slider is in between slides.

Example: Use mouse and drag to in between slide 5 & 6. Click on the previous slide navigation button. Slide is now on slide 1 instead of expected slide 5

Image

Funny enough, is works correctly using next slide:

Example: Use mouse and drag to in between slide 5 & 6. Click on the next button navigation button. Slide now slides to slide 6 as expected.

Image

Expected Behavior

If the slider is in between slide 5 and 6, clicking on previous slide button is causing the slide to return to slide 1.

Actual Behavior

If the slider is in between slide 5 and 6, clicking on previous slide button, should slide to slide 5.

Swiper version

11.2.1

Platform/Target and Browser Versions

Version 132.0.6834.110 (Official Build) (arm64)

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
@nolimits4web
Copy link
Owner

t0ggles-create swiper

Copy link

t0ggles bot commented Jan 27, 2025

Task nolimits4web/SWIPER-152 was created

t0ggles task SWIPER-152

@t0ggles t0ggles bot added the t0ggles Linked to the t0ggles task label Jan 27, 2025
Copy link

t0ggles bot commented Jan 27, 2025

Task nolimits4web/SWIPER-152 status changed to Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
React t0ggles Linked to the t0ggles task
Projects
None yet
Development

No branches or pull requests

2 participants