I need a slider with two rows. Found a solution in jQuery google group.
Works, but wrong. :) With option "circular: true" scrolled into the void. Posted an example to understand what i mean: http://test.demx.info/carousel/
How do fix it?
I need a slider with two rows. Found a solution in jQuery google group.
Works, but wrong. :) With option "circular: true" scrolled into the void. Posted an example to understand what i mean: http://test.demx.info/carousel/
How do fix it?
There is a bug in jCarousel_Lite. Here is fixed jCarousel_Lite code as a plain text and here it is, zipped.
If you are curious on what was wrong: author checked for two different conditions if user reached the end of carousel' list - first, when circular
is true
, he checked it like this: if (to <= o.start - v - 1)
and if (to >= itemLength - v + 1)
. The second check, when circular
is set to false
, he checked it like this: if (to < 0 || to > ((itemLength - v) / o.rows))
. What have i done is just changed if (to <= o.start - v - 1)
and if (to >= itemLength - v + 1)
to if (to < 0)
and if (to > ((itemLength - v) / o.rows))
. And it works! =)