jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
1.99k stars 734 forks source link

Autoscroll works 10% of the time #762

Closed lackzinsky closed 9 years ago

lackzinsky commented 9 years ago

Hi Jsor/community,

First of all, I wish to congratulate the creator of jcarousel. This is a very useful component to add meeting the needs of many developers.

I've been using several features of jcarousel successfully, but I face a problem when trying to integrate autoscroll plus responsiveness. I've created a Jsfiddle illustrating the problem. Only around 1/10th of the time the autoscroll works and I get no error message in my browser's console. I've tried different browsers and I've googled/checked the issues thread. I've tried version 0.3 of jcarousel and up. Would someone be able to have a look at the fiddle and identify where the error is? https://jsfiddle.net/vec6rum4/

Thanks in advance

jsor commented 9 years ago

Unfortunately, i cannot reproduce this. I've tried this in several browser and it worked everytime.

lackzinsky commented 9 years ago

I see, could it be due to me using angularjs and ng-repeat to create the li elements?

jsor commented 9 years ago

Most probably, yes. You should ensure, that the initialization of the carousel happens after the html is generated.