From 1a4443c2014b996b84f0e7d1393cf25abfc4afb8 Mon Sep 17 00:00:00 2001 From: Clarence Davis Date: Tue, 17 Oct 2017 07:05:23 -0500 Subject: [PATCH] Update distro file Returns the correct index --- dist/story-tools-edit-ng.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }