(Re)activation of prev button #17

Closed
davidhund opened this Issue Feb 20, 2015 · 3 comments

Projects

None yet

3 participants

@davidhund

I have a simple carousel with 2 visible items: $carousel.tinycarousel({ infinite: false, animationTime: 400 });

Initially the .prev button is disabled so I can only go from slide 1 to 2 etc...

  • When I proceed to slide 2, the .prev is enabled correctly (.disable is removed)
    However, I can not click on it to go back to slide 1…

So slide 2 is the first slide. I can't go back to 1.
Going to slide 3 I can go back to 2, so from there it works normally..

It works correctly on the last slide: when I reach the end .next is disabled. Going 1 slide back .next is re-enabled again correctly and I can go to the last slide.

My gut-feeling is that the infinite funcitonality is a bit buggy. Maybe there's some index bug (difference between 0-based or 1-based index?)

@wieringen wieringen added a commit that referenced this issue Feb 22, 2015
@wieringen Fixed issue #17 cb6f1ec
@wieringen
Owner

Should be fixed in 2.1.8 :)

@wieringen wieringen closed this Feb 22, 2015
@wieringen wieringen added a commit that referenced this issue Feb 22, 2015
@wieringen Fixed issue #17 006bc0a
@davidhund

Awesome, thanks Maarten!

@hoangnm89

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment