diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-09 22:43:27 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-09 22:48:00 +1100 |
| commit | d335df85ea815d10df62a126067482e178e3670a (patch) | |
| tree | 0fee59202b7b92b9364bf398ca3ab10eec4bb897 /src/components/TimeLine.vue | |
| parent | ccdc73e303a640e61e02a67cedac92075f1ea4af (diff) | |
Reverse scroll direction for horizontal panning
Diffstat (limited to 'src/components/TimeLine.vue')
| -rw-r--r-- | src/components/TimeLine.vue | 2 |
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){ |
