Skip to content

Commit 3628bcb

Browse files
authored
fix(carousel): Unable to reach last slide
1 parent 1e1ddf7 commit 3628bcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/carousel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
return;
155155
}
156156
// Wrap around?
157-
if (slide >= this.slides.length - 1) {
157+
if (slide > this.slides.length - 1) {
158158
slide = 0;
159159
} else if (slide < 0) {
160160
slide = this.slides.length - 1;

0 commit comments

Comments
 (0)