diff options
author | bobzel <zzzman@gmail.com> | 2023-03-17 12:22:03 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-03-17 12:22:03 -0400 |
commit | 8aeab8c3f25c556e39f3e9e58f9c321e79459df8 (patch) | |
tree | 1d01058a34b2fd5ca45344454dac84a4059e64d1 /src/client/views/nodes/AudioBox.tsx | |
parent | bdccbc7a37216ffc88920ec48f9119a8ada0be60 (diff) |
fixed scriptingbox to remove script if text is empty. fixed scripting with capturedvariables not to cache scripts with lists of captured documents. fixed runtime warnings with stackedTimelined and AudioBox
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
-rw-r--r-- | src/client/views/nodes/AudioBox.tsx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx index 0b95d712c..610c10be6 100644 --- a/src/client/views/nodes/AudioBox.tsx +++ b/src/client/views/nodes/AudioBox.tsx @@ -634,15 +634,11 @@ export class AudioBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp step="0.1" min="1" max="5" - value={this.timeline?._zoomFactor} + value={this.timeline?._zoomFactor ?? 1} className="toolbar-slider" id="zoom-slider" - onPointerDown={(e: React.PointerEvent) => { - e.stopPropagation(); - }} - onChange={(e: React.ChangeEvent<HTMLInputElement>) => { - this.zoom(Number(e.target.value)); - }} + onPointerDown={(e: React.PointerEvent) => e.stopPropagation()} + onChange={(e: React.ChangeEvent<HTMLInputElement>) => this.zoom(Number(e.target.value))} /> </div> )} |