jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
1.99k stars 736 forks source link

Next Arrow control remain active after last element #668

Closed SandroRiz closed 10 years ago

SandroRiz commented 10 years ago

I setup a basic carousel with 3 elements; the Next arrow should get inactive when I'm on the last image, but this doensn't work. It get inactive after one additional click; it seems like it counts n+1 elements instead n Sample here: http://microgateusa.microgate.org

Thanks

jsor commented 10 years ago

The problem is, that you images in your items have 950px width, but your clip has 949px width. So, jCarousel detects a 1px tail at the end and scrolls that. Just change the width to 950px for your .jcarousel selector.

SandroRiz commented 10 years ago

PERFECT!! Thanks a lot for your debugging !!