angular-carousel icon indicating copy to clipboard operation
angular-carousel copied to clipboard

Infinite loop by left swipe doesn't behave rightly.

Open pandanoir opened this issue 8 years ago • 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).

pandanoir avatar Oct 09 '15 08:10 pandanoir