You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When window resizes, the first Slide will be partially shown.
This could be a bit 'noisy' on iOS Safari. Safari's viewport height changes when scrolling and causes this frequently.
As per the document for centeredSlidesBounds,
If true, then active slide will be centered without adding gaps at the beginning and end of slider. Required centeredSlides: true. Not intended to be used with loop or pagination
I don't know whether this 'unexpected sliding movement on window resize' is intended, or could be an issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, everyone.
When
centeredSlidesBounds
istrue
andslidesPerView
is an even number, everything works fine until there's a window resize.I made a code sandbox below forked from one of the official demos.
https://codesandbox.io/s/swiper-centered-forked-vnw0m
When window resizes, the first Slide will be partially shown.
This could be a bit 'noisy' on iOS Safari. Safari's viewport height changes when scrolling and causes this frequently.
As per the document for
centeredSlidesBounds
,I don't know whether this 'unexpected sliding movement on window resize' is intended, or could be an issue.
Would be appreciated if there's any workaround.
😊😊😊
Beta Was this translation helpful? Give feedback.
All reactions