revolunet/angular-carousel

Infinite loop by left swipe doesn't behave rightly.

pandanoir opened this issue · 0 comments

The demo page behaves rightly, but my app(http://pandanoir.web.fc2.com/works/timetable) doesn't behave rightly.
I found the code which may cause the bad behavior. Below code may be wrong.

                                if(iAttributes.rnCarouselOnInfiniteScrollLeft!==undefined && slidesMove === 0 && scope.carouselIndex === 0 && moveOffset === 0) {
                                    $parse(iAttributes.rnCarouselOnInfiniteScrollLeft)(scope)
                                    goToSlide(currentSlides.length);
                                }

I think goToSlide(currentSlides.length); should be goToSlide(currentSlides.length - 1).