sliderPerGroup different for initial swipe in combination with centeredSlides & centeredSlidesBounds #7506
Unanswered
sanderschnydrig
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I made a Stackblitz so you guys can see what I'm talking about:
https://stackblitz.com/edit/stackblitz-starters-uwb77a?file=src%2Fapp%2Fapp.component.ts
The use case I'm trying to get working is the following: There are 3 slides fully visible, with 30% of another Slide being visible. When swiping, I want the 3 slides in the middle to be cented, with 15% of the previous and next slides visible. However using centeredSlides, it only shows 2 slides and in combination with centeredSlidesBounds, the layout is working as I want. However because it shifts one slide to the left with centeredSlidesBounds, the slidesPerGroup is 2 instead of 3 for the initial Swipe. After that, it is 3 and working as intended. How can I achieve for the first swipe to slide 3 slides as specified by the slidesPerGroup property?
Also another issue is that when navigating all the way to the right, the last slide is not fully visible.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions