From 5b6fa014c2c5201e0981b25d38adebe8886a8acb Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 6 Dec 2022 12:32:52 -0800 Subject: [PATCH] scroller: snap to day on touch --- src/components/ScrollerManager.vue | 33 ++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/src/components/ScrollerManager.vue b/src/components/ScrollerManager.vue index 07ccc9a8..0c18f2ba 100644 --- a/src/components/ScrollerManager.vue +++ b/src/components/ScrollerManager.vue @@ -9,9 +9,12 @@ scrolling: scrollingTimer, }" @mousemove.passive="mousemove" - @touchmove.prevent="touchmove" @mouseleave.passive="mouseleave" @mousedown.passive="mousedown" + @mouseup.passive="interactend" + @touchmove.prevent="touchmove" + @touchstart.passive="interactstart" + @touchend.passive="interactend" >
{{ hoverCursorText }}
@@ -42,7 +47,7 @@