aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/AudioBox.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2021-10-28 15:58:38 -0400
committermehekj <mehek.jethani@gmail.com>2021-10-28 15:58:38 -0400
commit3ba076f93e2aa182698a229b381a77765f11213e (patch)
treee04e444f26e8986d8e8048b5a46170f5ba436724 /src/client/views/nodes/AudioBox.tsx
parent5886662d38619be96d1cb3ed6396dd133c254841 (diff)
fixed marker drag and drop in scrolled zoomed timeline
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
-rw-r--r--src/client/views/nodes/AudioBox.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx
index 3a3eb78e1..a896c7d90 100644
--- a/src/client/views/nodes/AudioBox.tsx
+++ b/src/client/views/nodes/AudioBox.tsx
@@ -158,8 +158,7 @@ export class AudioBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
this.mediaState = media_state.Playing;
this._play = setTimeout(
() => {
- this.Pause();
- if (fullPlay) this.setPlayheadTime(this.timeline!.trimStart);
+ this.setPlayheadTime(this.timeline!.trimStart);
},
(end - start) * 1000);
} else {
@@ -254,7 +253,7 @@ export class AudioBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
Play = (e?: any) => {
const eleTime = this._ele?.currentTime || 0;
const start = eleTime === this.timeline?.trimEnd ? this.timeline.trimStart : eleTime;
- this.playFrom(start, undefined, true);
+ this.playFrom(start, undefined);
e?.stopPropagation?.();
}
@@ -263,7 +262,7 @@ export class AudioBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp
Pause = () => {
this._ele?.pause();
this.mediaState = media_state.Paused;
- // clearTimeout(this._play); // stops clip from jumping back to beginning
+ clearTimeout(this._play); // stops clip from jumping back to beginning
}
// creates a text document for dictation