I found a bug in the scroll function of jcarousel :
 If the number of items is not a mutiple of the scroll parameter, then
when you go back in the list, the first item is nether shown again.
Ex : try a list of 6 items with visible parameter=4 and scroll
parameter=4.

The solution is to change line 453 :
this.scroll(((this.options.wrap == 'both' || this.options.wrap ==
'first') && this.options.size != null && this.first == 1) ?
this.options.size : this.first - this.options.scroll);
replace by :
this.scroll(((this.options.wrap == 'both' || this.options.wrap ==
'first') && this.options.size != null && this.first == 1) ?
this.options.size : Math.max(0,this.first - this.options.scroll));

Because the result of  this.first - this.options.scroll can be
negative, the scroll didn't allow to go to the first element again.

Regards

Reply via email to