From 13e57ac095392d49ab3b20edd95cdfad916cdd5f Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Wed, 19 Aug 2020 13:05:05 -0700 Subject: [PATCH] Fixes bug with progress --- assets/components/ScrollProgress.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/components/ScrollProgress.vue b/assets/components/ScrollProgress.vue index 8b7d90da..3f1ca236 100644 --- a/assets/components/ScrollProgress.vue +++ b/assets/components/ScrollProgress.vue @@ -74,8 +74,8 @@ export default { onScroll() { const p = this.parentElement == document ? document.documentElement : this.parentElement; this.scrollProgress = p.scrollTop / (p.scrollHeight - p.clientHeight); + this.animation.cancel(); if (this.autoHide) { - this.animation.cancel(); this.animation = this.$el.animate( { opacity: [1, 0] }, {