Closed fgrasu closed 1 year ago
I can't reproduce this issue. In this CodeSandbox link I've changed the first demo on that page to loop
and I have more slidesPerPage
than the actual number of slides.
The slides are rendering as expected for me.
Regarding
I think slidesPerPage value should at least default to the carousel length value - 1
In this case, I think you'd maybe do something like:
<ssr-carousel :slides-per-page='Math.min(3, slides.length - 1) />
Or something similar.
@weotch I played with the settings a little more. It seems like the peek
prop is actually the issue when is set on default settings. See if you can reproduce it now. Not a big issue though, I can use your solution with Math.min
, thanks.
Oh yeah, I see what you mean
I'm going to keep this open to fix
Hi there. I noticed that setting
slidesPerPage
inresponsive
a value that is equal or higher than the carousel length, while theloop
istrue
, will break the carousel. In this case, I thinkslidesPerPage
value should at least default to the carousel length value - 1. What do you guys think?This is how is displayed: