aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2023-01-09 22:43:27 +1100
committerTerry Truong <terry06890@gmail.com>2023-01-09 22:48:00 +1100
commitd335df85ea815d10df62a126067482e178e3670a (patch)
tree0fee59202b7b92b9364bf398ca3ab10eec4bb897
parentccdc73e303a640e61e02a67cedac92075f1ea4af (diff)
Reverse scroll direction for horizontal panning
-rw-r--r--src/components/TimeLine.vue2
1 files changed, 1 insertions, 1 deletions
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){