kenwheeler / slick

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

Slick version 1.8.1 issue, with sync #4080

Open n4nirmal09 opened 3 years ago

n4nirmal09 commented 3 years ago

Slick 1.8.1 issue while syncing two sliders.

[ https://jsfiddle.net/n4nirmal/9cqvm1a7/4/ ]

https://jsfiddle.net/n4nirmal/9cqvm1a7/4/

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

Steps to reproduce the problem

  1. use new version of slick 1.8.1
  2. try syncing two carousels, with number of items for Nav carousel lesser than "slidesToShow" value
  3. And try scrolling the main carousel(single carousel)

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

What is the expected behaviour?

The Navigation slider should only scroll if there are items greater than slides to show, while changing the main carousel Like this https://codepen.io/n4nirmal09/pen/oNBZBbw using slick 1.5.9,

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

What is observed behaviour?

The Navigation slider is scrolling, even if slides of nav are lesser than slidestoshow. This doesn't happen in version 1.5.9 and 1.6.0

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

More Details