From 367b4029d40e94ce896b65bea50fc095eab51c61 Mon Sep 17 00:00:00 2001 From: jgerstbe Date: Thu, 16 Jul 2020 23:30:21 +0200 Subject: [PATCH] [U] set carouselState to active on next/prev --- public/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app.js b/public/app.js index a592333..bf202e1 100644 --- a/public/app.js +++ b/public/app.js @@ -9,6 +9,7 @@ new Vue({ }, methods: { next: function () { + this.carouselActive = true; clearTimeout(this.timeout); setTimeout(() => this.carousel(), this.carouselTimeout*2); if (this.index + 1 < this.files.length) { @@ -18,6 +19,7 @@ new Vue({ } }, prev: function () { + this.carouselActive = true; clearTimeout(this.timeout); setTimeout(() => this.carousel(), this.carouselTimeout*2); if (this.index - 1 >= 0) { @@ -44,7 +46,6 @@ new Vue({ if (this.carouselActive) { this.carouselActive = false; clearTimeout(this.timeout); - console.log(this.timeout) } else { this.carouselActive = true; this.carousel();