Description
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
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.
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