jsor / jcarousel

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

'circular' option not working #798

Closed alexandernst closed 8 years ago

alexandernst commented 8 years ago

Demo http://codepen.io/alexandernst/pen/ZWrmMm

Hitting the "right" button 3 times will move the carousel to the left. But then, the next 2 clicks won't move anything. Then 1 more click will "restart" the carousel.

jsor commented 8 years ago

The problem is, that you don't set a explicit width for your carousel items. jCarousel can only calculate correctly once all images loaded. You can try to reload the carousel on window.load or (use something like imagesloaded).