darsain / sly

JavaScript library for one-directional scrolling with item based navigation support.
http://darsa.in/sly
2.87k stars 496 forks source link

active class doesn't change when dragging or touch-dragging #293

Open Adrian-I opened 6 years ago

Adrian-I commented 6 years ago

Hello,

When changing slides using mouse drag or touch drag the active class doesn't follow along and it just freezes. The will cause problems when using the arrows to change the items, because when hitting next will make the carousel jumping at the position where active class was left.

Below is a fiddle where i replicated the active class not changing at mouse drag.

https://jsfiddle.net/OmarIsComing/yugc0Lbp/

Thanks