kenwheeler / slick

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

Destroy / init and the slick slide only works for 1 advancement #2895

Open bteague opened 7 years ago

bteague commented 7 years ago

integrated the slick slider with an Instagram feed system. Because of the way the slick slider is already integrated in to the site, the instantiation of the slick slider happens prior to the the instagram pictures being loaded into the slider div area.

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

[ http://jsfiddle.net/94gzj6jy/2/ ]

use this jsfiddle to reproduce your bug: http://jsfiddle.net/94gzj6jy/2/

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

Steps to reproduce the problem

  1. Create a slideshow.
  2. destroy the slideshow
  3. init the slideshow.

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

What is the expected behaviour?

One the slideshow is initialized again, scrolling should continue to work. It does not. It stops after 1 advancement. NOTE: if you resize the window and trip a breakpoint, the slick slider will work correctly again.

...

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

What is observed behaviour?

The slick slider stops working after 1 advancement. ...

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

More Details

Based on another message post, I tested it with Version 1.5.9, and it works correctly. after the Destroy / init, the slider worked as expected.

jonschr commented 3 years ago

Same issue. Bumping!