kenwheeler / slick

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

slick-active class not applied #1892

Open scottpnelson opened 9 years ago

scottpnelson commented 9 years ago

Fiddle: http://jsfiddle.net/fmo50w7n/136/

Issue: Clicking on slides 4, 5 or 6 does not set class "slick-current" on those elements. This is only an issue when centerMode is set to false.

shivansp commented 9 years ago

Fiddle: http://jsfiddle.net/fmo50w7n/137/

Its working when (here u can see the class slick-current on 4,5,6) infinite:true and also here centermode: false

koraysels commented 8 years ago

also if you have a slider with 2 elements, and you set slidesToShow on 3 then slick-active will never get added to any slides in that slider....

koraysels commented 8 years ago

Also in this fiddle http://jsfiddle.net/fmo50w7n/137/ if you go from sllide 6 to slide 1 you see a delay between the active states.. there is a period of time where none of the divs have an active state

simeydotme commented 8 years ago

great fiddles @scottpnelson and @shivansp ... it's because internally slick doesn't really "go" to the 5th/6th slide as they are at the end....

I think it needs some careful consideration and perhaps re-architecting.