We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ef72a3 commit f1252dcCopy full SHA for f1252dc
packages/carousel/src/main.vue
@@ -236,6 +236,11 @@ export default {
236
this.timer = setInterval(this.playSlides, this.interval);
237
},
238
239
+ resetTimer() {
240
+ this.pauseTimer();
241
+ this.startTimer();
242
+ },
243
+
244
setActiveItem(index) {
245
if (typeof index === 'string') {
246
const filteredItems = this.items.filter(item => item.name === index);
@@ -260,6 +265,7 @@ export default {
260
265
if (oldIndex === this.activeIndex) {
261
266
this.resetItemPosition(oldIndex);
262
267
}
268
+ this.resetTimer();
263
269
264
270
271
prev() {
0 commit comments