Skip to content

Commit 34cfeac

Browse files
committed
fix: stop audio on timeline scrub
1 parent 6d55a34 commit 34cfeac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/web/src/core/managers/audio-manager.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ export class AudioManager {
8686
const detail = (event as CustomEvent<{ time: number }>).detail;
8787
if (!detail) return;
8888

89+
if (this.editor.playback.getIsScrubbing()) {
90+
this.stopPlayback();
91+
return;
92+
}
93+
8994
if (this.editor.playback.getIsPlaying()) {
9095
void this.startPlayback({ time: detail.time });
9196
return;

0 commit comments

Comments
 (0)