diff --git a/dist/story-tools-edit-ng.js b/dist/story-tools-edit-ng.js index 057d95f..47894ff 100644 --- a/dist/story-tools-edit-ng.js +++ b/dist/story-tools-edit-ng.js @@ -672,7 +672,7 @@ var carousel = controllers[0]; function howIsPrev() { if (carousel.indexOfSlide(carousel.currentSlide) === 0) { - return carousel.slides.length; + return carousel.slides.length - 1; } else { return carousel.indexOfSlide(carousel.currentSlide) - 1; }