For reasons I don't fully understand, the jCarousel was broken when the last thumbnail was clicked first and the aspect of the first media was taller than the last media.
This workaround fixes the problem by:
Forcing the 2nd-to-last media to always load before the last media.
Using the scroll event instead of scrollend to minimize race conditions.
Fixes #85
For reasons I don't fully understand, the jCarousel was broken when the last thumbnail was clicked first and the aspect of the first media was taller than the last media.
This workaround fixes the problem by:
scroll
event instead ofscrollend
to minimize race conditions.