I've just updated jCarousel to 0.1.2. You can pass now the option wrapPrev
which does exactly that.
Jan
agent2026 wrote:
Using the built in wrap, setting viewable images to 1 and using no
animation the carousel is visually looping in the next direction back to
the beginning. This is good
Sweet, thanks Jan. Works perfectly.
Great way to start my day :)
Adam
--
View this message in context:
http://www.nabble.com/Make-jCarousel-Loop--tf2668238.html#a7576706
Sent from the jCarousel mailing list archive at Nabble.com.
___
jQuery
Using the built in wrap, setting viewable images to 1 and using no animation
the carousel is visually looping in the next direction back to the
beginning. This is good enough for me in that direction, but there must be
some way to modify the first image 'prev' link to scroll to the last image.
Hi,
try that (untested):
Replace the line
priv.scroll(priv.first - priv.o.itemScroll);
with
priv.scroll((priv.o.wrap priv.first == 1) ? priv.size -
priv.o.itemVisible + 1 : priv.first - priv.o.itemScroll);
Jan
agent2026 wrote:
Using the built in wrap, setting viewable images to 1 and