Skip to content

Commit

Permalink
Update distro file
Browse files Browse the repository at this point in the history
Returns the correct index
  • Loading branch information
Clarence Davis committed Oct 17, 2017
1 parent 91bb1c2 commit 1a4443c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/story-tools-edit-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1a4443c

Please sign in to comment.