Skip to content

fix: centeredSlidesBounds don't work when grid.rows > 1#6413

Open
sunxd-lab wants to merge 1 commit intonolimits4web:masterfrom
sunxd-lab:bugFix/fixCenteredSlidesBounds
Open

fix: centeredSlidesBounds don't work when grid.rows > 1#6413
sunxd-lab wants to merge 1 commit intonolimits4web:masterfrom
sunxd-lab:bugFix/fixCenteredSlidesBounds

Conversation

@sunxd-lab
Copy link
Copy Markdown

When I swipe from left to right and use the grid layout and grid.rows > 1, "centeredSlidesBounds" doesn't work at the right。
Replace “allSlidesSize” with "swiper.virtualSize" to calculate whether the slide reaches the boundary,tested the fix on my project and it works correctly now...

Reproduction link
https://codesandbox.io/s/beautiful-bassi-xf45wf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant