[jQuery] jCarousel - endless creation of new placeholders when scrolling forward
I'm creating a jCarousel piece by piece when images are added to my
page dynamically. So, for each iteration through an image add, its
thumbnail is placed into the jCarousel using the add() method. The
carousel begins with no images at all (so it creates placeholder
images). So, I start with no images, and add 6 or 7 before beginning
to scroll.
The problem happens when I use the right arrow and scroll forward.
When I come to the last image in the list, instead of it staying
anchored to the right edge of the carousel area, it continues to
scroll to the left and placeholder <li> elements are dynamically added
to the right of the last image. This goes on endlessly, so the end is
never reached and scrolling could continue indefinitely.
Is this a fundamental issue due to beginning with an empty carousel
and adding images one by one to the list?