Skip to content

Commit 3dbc968

Browse files
authored
fix(coursel): Ensure minimum interval of 1 second
1 parent 82162dd commit 3dbc968

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
@@ -232,7 +232,7 @@
232232
});
233233
this.intervalId = setInterval(() => {
234234
this.next();
235-
}, Math.min(1000, this.interval));
235+
}, Math.max(1000, this.interval));
236236
},
237237
238238
// Re-Start auto rotate slides when focus/hover leaves the carousel

0 commit comments

Comments
 (0)