kenwheeler / slick

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

fix: Unshown Slides in Infinite Mode #4076

Open lhortmann opened 3 years ago

lhortmann commented 3 years ago

If slidesToScroll is set to 1, the modulo expression is always true, so the if-query jumps into the else branch. Create an upstream-if-query for this case, so the first slides ist shown correctly after the last one