From 16e314d7cce95a6b5a7d7ab031897ace5bc7a84e Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Thu, 24 Jan 2019 10:48:35 +0000 Subject: [PATCH] naive handling of preventing image changes during already running transiiton --- components/BackgroundImageLoader.vue | 31 +++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/components/BackgroundImageLoader.vue b/components/BackgroundImageLoader.vue index cdf1c62..c46017b 100644 --- a/components/BackgroundImageLoader.vue +++ b/components/BackgroundImageLoader.vue @@ -2,14 +2,18 @@
- +
- +
{ + this.isInTransition = false + if (this.imageUrl !== this.loadedImageUrl) { + this.setImage(this.imageUrl) + } + }, transitionDuration) + }, + + handleAfterLeave() { + + } }, }