From e3186c1759f44053062851f4e37777f96c7e49e8 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 31 Oct 2023 19:12:38 -0700 Subject: [PATCH] sel: add move frame to resetTouchParams Signed-off-by: Varun Patil --- src/components/SelectionManager.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/SelectionManager.vue b/src/components/SelectionManager.vue index 13b7c422..b2d99a79 100644 --- a/src/components/SelectionManager.vue +++ b/src/components/SelectionManager.vue @@ -405,14 +405,18 @@ export default defineComponent({ resetTouchParams() { this.touchAnchor = null; - window.clearTimeout(this.touchTimer); - this.touchTimer = 0; this.touchMoved = false; this.prevOver = null; + window.clearTimeout(this.touchTimer); + this.touchTimer = 0; + window.cancelAnimationFrame(this.touchScrollInterval); this.touchScrollInterval = 0; + window.cancelAnimationFrame(this.touchMoveSelFrame); + this.touchMoveSelFrame = 0; + this.prevTouch = null; },