aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-01-28 13:02:02 -0500
committerbobzel <zzzman@gmail.com>2021-01-28 13:02:02 -0500
commite517c709905a2d4b5c631bf148a4c5074f0f5210 (patch)
tree1d639871b76f45400c62f16e40b284e17b550ac5 /src
parent01923ad2a499c6b8f571d5bc3eafaf006c91d8e4 (diff)
fixed timeline sizing in videoBox
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/VideoBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx
index 65bb9abaf..a9c64b0bd 100644
--- a/src/client/views/nodes/VideoBox.tsx
+++ b/src/client/views/nodes/VideoBox.tsx
@@ -416,7 +416,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<FieldViewProps, VideoD
action((e: PointerEvent) => {
this._clicking = false;
if (this.active()) {
- const local = this.props.ScreenToLocalTransform().transformPoint(e.clientX, e.clientY);
+ const local = this.props.ScreenToLocalTransform().scale(this.props.scaling?.() || 1).transformPoint(e.clientX, e.clientY);
this.layoutDoc._timelineHeightPercent = Math.max(0, Math.min(100, local[1] / this.props.PanelHeight() * 100));
}
return false;