diff options
| author | geireann <60007097+geireann@users.noreply.github.com> | 2021-04-09 11:53:53 -0400 |
|---|---|---|
| committer | geireann <60007097+geireann@users.noreply.github.com> | 2021-04-09 11:53:53 -0400 |
| commit | fad5449e1b73914e168cf97b363c75dd6a7d15fa (patch) | |
| tree | c7c29ace32d7cc997e97fa4da0fea96bb309c26e /src/client/views/nodes/VideoBox.tsx | |
| parent | 5d01963d349272e4a2bd38083769b3f1d0a392bc (diff) | |
| parent | 9604968e525dd44d24fc38eed84ff3a7cc706862 (diff) | |
Merge branch 'demo_changes' of https://github.com/browngraphicslab/Dash-Web into demo_changes
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
| -rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index ab072a97f..3b0fb4091 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -423,7 +423,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp this._clicking = false; if (this.isContentActive()) { const local = this.props.ScreenToLocalTransform().scale(this.props.scaling?.() || 1).transformPoint(e.clientX, e.clientY); - this.layoutDoc._timelineHeightPercent = 50; + this.layoutDoc._timelineHeightPercent = Math.max(0, Math.min(100, local[1] / this.props.PanelHeight() * 100)); } return false; }), emptyFunction, |
