kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.34k stars 5.88k forks source link

Allow other values than 1 for slidesToScroll when using centerMode. #4089

Closed lurifuchs closed 2 years ago

lurifuchs commented 3 years ago

I was having issues scrolling two slides using centerMode (with two visible slides). Modifing the if statements allowed other values instead of forcing it to be 1. This works fine for my use cases but I don't know if there's was good reason this was added in the first place.