aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/AudioBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-25 10:44:16 -0400
committerbobzel <zzzman@gmail.com>2021-09-25 10:44:16 -0400
commit93996d3a25733fbf90b24e9d671aa899b2055e47 (patch)
tree317c26a0b19743eca272a083cd122d9f0b7ffbc9 /src/client/views/nodes/AudioBox.tsx
parent534e21a74f646b2e6fd009f6bf910679869797b4 (diff)
fixed play() bug from last. fixed highlight of punch in/punch out region with spacebar
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
-rw-r--r--src/client/views/nodes/AudioBox.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx
index 7eb5639c0..2574b5a45 100644
--- a/src/client/views/nodes/AudioBox.tsx
+++ b/src/client/views/nodes/AudioBox.tsx
@@ -222,8 +222,7 @@ export class AudioBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
(end - start) * 1000
); // use setTimeout to play a specific duration
}
- }
- if (seekTimeInSeconds < 0 && seekTimeInSeconds > -1) {
+ } else if (seekTimeInSeconds < 0 && seekTimeInSeconds > -1) {
setTimeout(() => this.playFrom(0), -seekTimeInSeconds * 1000);
} else {
this.Pause();