swiper
swiper copied to clipboard
feat(core): add `alignSlides` option to keep minimum full slides visi…
Fixes: https://github.com/nolimits4web/swiper/discussions/4780
Currently it's possible for the swiper to fall out of alignment if a fractional value is set for slidesPerView and the user reaches the end of the swiper (as show below). The PR Introduces a new boolean param alignSlides (default false) in core defaults and when set to true ensures all sides are always aligned in their original place.
- Introduce new boolean param
alignSlides(defaultfalse) in core defaults - Trim
snapGridso that only snaps leaving ≥ floor(slidesPerView) slides fully visible remain - Preserve original “right-flush” fallback only when
alignSlidesis disabled
t0ggles-create swiper
Any chance of getting this merged reviewed/merged soon?