From af5e3ef1053901190542b9a0a4da2ff0f65d0cbe Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 29 Oct 2022 17:11:12 -0700 Subject: [PATCH] Simplify scroller timers --- src/components/ScrollerManager.vue | 81 ++++++++++++++++-------------- 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/src/components/ScrollerManager.vue b/src/components/ScrollerManager.vue index 7c4857b3..9cd3bb06 100644 --- a/src/components/ScrollerManager.vue +++ b/src/components/ScrollerManager.vue @@ -3,9 +3,10 @@ class="scroller" ref="scroller" v-bind:class="{ - 'scrolling-recycler': scrollingRecyclerTimer, 'scrolling-recycler-now': scrollingRecyclerNowTimer, - scrolling: scrolling, + 'scrolling-recycler': scrollingRecyclerTimer, + 'scrolling-now': scrollingNowTimer, + scrolling: scrollingTimer, }" @mousemove="mousemove" @touchmove="touchmove" @@ -41,7 +42,7 @@ @@ -596,11 +603,11 @@ export default class ScrollerManager extends Mixins(GlobalMixin) { } } } - &.scrolling-recycler-now > .cursor { + &.scrolling-recycler-now:not(.scrolling-now) > .cursor { transition: transform 0.1s linear; } &:hover > .cursor { - transition: none; + transition: none !important; &.st { opacity: 1; }