From d335df85ea815d10df62a126067482e178e3670a Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Mon, 9 Jan 2023 22:43:27 +1100
Subject: Reverse scroll direction for horizontal panning

---
 src/components/TimeLine.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/TimeLine.vue')

diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue
index 16990d7..e46472b 100644
--- a/src/components/TimeLine.vue
+++ b/src/components/TimeLine.vue
@@ -1136,7 +1136,7 @@ function onPointerUp(evt: PointerEvent){
 	dragDiff = 0;
 }
 function onWheel(evt: WheelEvent){
-	let shiftDir = evt.deltaY > 0 ? 1 : -1;
+	let shiftDir = (evt.deltaY > 0 ? 1 : -1) * (!props.vert ? -1 : 1);
 	panTimeline(shiftDir * store.scrollRatio);
 }
 function onShiftWheel(evt: WheelEvent){
-- 
cgit v1.2.3

