Changing the slider direction while using virtual slides broke the slider
Author: EptagoneCreated Jul 1, 2025Updated Sep 9, 2026
Check that this is really a bug
- I confirm
Reproduction link
https://codesandbox.io/p/sandbox/swiper-virtual-slides-forked-xt7hnd
Bug description
When using virtual slides, if you navigate some slides and then change the direction, the slides move to an unexpected position, breaking the slider. It only happens when using virtual slides and works fine without them.
Expected Behavior
The slides must be positioned correctly.
Actual Behavior
The slider is broken after changing direction.
Swiper version
11.2.10
14.2.0 (Updated, still happening)
Platform/Target and Browser Versions
Chrome
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
Source: nolimits4web/swiper