brainhubeu / react-carousel

A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)
https://brainhub.eu/
MIT License
1.07k stars 164 forks source link

Without empty space around the edges #582

Closed Dima-Dim closed 4 years ago

Dima-Dim commented 4 years ago

Faced the following behavior: There may be 2 slides in the gallery, with the value slidesPerPage = 2 and centered, when you select the slides, they move both left and right, there is an empty space, which may not be desirable, you just need to change the active slide without moving anything, because the page already has all the slides displayed. The following is not desirable behavior with the same settings, but with more slides. If the first or last slides are selected, either left or right, an empty space remains.

Is it possible to add a setting that would make it possible not to create this free space?

piotr-s-brainhub commented 4 years ago

@Dima-Dim

Do you think it's the same as https://github.com/brainhubeu/react-carousel/issues/501 ?

Dima-Dim commented 4 years ago

Yes, really! Thank! He put his finger up ;)

piotr-s-brainhub commented 4 years ago

Thanks so I close this issue.