Skip to content

Commit a855999

Browse files
committed
[antoniandre#148] Fix the autoplay.
1 parent 8e0da5f commit a855999

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/vueperslides/vueperslides.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ export default {
842842
},
843843
844844
doAutoplay () {
845+
clearTimeout(this.autoplayTimer)
845846
this.autoplayTimer = setTimeout(() => {
846847
this.goToSlide(this.slides.current + this.conf.slideMultiple, { autoPlaying: true })
847848
}, this.currentSlide.duration || this.conf.duration)

0 commit comments

Comments
 (0)