kenwheeler / slick

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

Navigation slider issue when less than slides to show amount of slides #4069

Open Pete0000 opened 3 years ago

Pete0000 commented 3 years ago

if I have less items than the slides to show in my nav slider and I am not on the first slide, all slides before the active slide get hidden off screen. Seems to have started happening from version 1.7

See SO post https://stackoverflow.com/questions/66170709/slick-slider-transform-issue-on-nav-slider

====================================================================

https://jsfiddle.net/eugkw491/

====================================================================

Steps to reproduce the problem

  1. Either slide to slide 2 using main (top) slider arrow
  2. Or Click on the 2 in the nav slider (so the 2 is loaded into the top slider) and resize screen

====================================================================

What is the expected behaviour?

when you select the second slide through the main slider (or the nav slider with resize). If the number of slides is less than the slides to show, all slides should stay visible in the nav

====================================================================

What is observed behaviour?

if the number of slides in the nav slider is less than the slides to show, all slides before the active slide will be hidden

====================================================================

More Details