aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/AudioBox.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
-rw-r--r--src/client/views/nodes/AudioBox.tsx13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx
index f6d6ff440..6a25ffaeb 100644
--- a/src/client/views/nodes/AudioBox.tsx
+++ b/src/client/views/nodes/AudioBox.tsx
@@ -577,9 +577,16 @@ export class AudioBox extends ViewBoxAnnotatableComponent<
PanelWidth={this.timelineWidth}
PanelHeight={this.timelineHeight}
rawDuration={this.rawDuration}
- clipStart={this.clipStart}
- clipEnd={this.clipEnd}
- clipDuration={this.duration}
+
+ // this edits the entire waveform when trimming is activated
+ clipStart={this._trimming ? 0 : this.clipStart}
+ clipEnd={this._trimming ? this.rawDuration : this.clipEnd}
+ clipDuration={this._trimming ? this.rawDuration : this.duration}
+ // this edits just the current waveform clip when trimming is activated
+ // clipStart={this.clipStart}
+ // clipEnd={this.clipEnd}
+ // clipDuration={this.duration}
+
trimming={this._trimming}
trimStart={this.trimStartFunc}
trimEnd={this.trimEndFunc}