malsup / cycle2

2nd gen cycling
899 stars 236 forks source link

cycle-slide-active on wrong element? #639

Open jkrusy opened 9 years ago

jkrusy commented 9 years ago

Hello,

i have used the carousel version of cycle2 to create a centered image slider with three images. The active image is in the center and the previous and next image are partly visible (cropped by the browser window).

When the slideshow starts, the fourth element in the row (so the next version of the first image) gets the initial cycle-slide-active. After the transition, it's the fifth, after another, the sixth.. After all three images were shown, the cycle-slide-active class is given to the correct element.

I also have this problem while working with the events.

Am I doing something wrong?

czachor commented 9 years ago

Same here. When 'allow-wrap' is disabled, then 'cycle-slide-active' is in correct position.