aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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){