Permalink
Browse files

fix(carousel): Unable to reach last slide

  • Loading branch information...
tmorehouse committed Aug 9, 2017
1 parent 1e1ddf7 commit 3628bcbaecf10d2e86d6677c82b7fbab27b3c0df
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/components/carousel.vue
@@ -154,7 +154,7 @@
return;
}
// Wrap around?
if (slide >= this.slides.length - 1) {
if (slide > this.slides.length - 1) {
slide = 0;
} else if (slide < 0) {
slide = this.slides.length - 1;

0 comments on commit 3628bcb

Please sign in to comment.