Wilto / Dynamic-Carousel

A carousel plugin built for responsive layouts. There are many like it, but this one is mine.
matmarquis.com/carousel/
472 stars 112 forks source link

Bug In JQuery Animate for move() function #57

Closed fadugyamfi closed 10 months ago

fadugyamfi commented 12 years ago

Hi,

Discovered a bug in the current code that does not allow the "opt.namespace + '-aftermove'" code to be triggered. The jquery animation functionality at line 272 needs to change to the following code

.animate({ marginLeft: ui.moveTo + "%" }, { duration : opt.speed, queue : false, complete: function() { $(this).trigger( opt.namespace + "-aftermove" ); }});