fix: stop audio on timeline scrub

This commit is contained in:
Maze Winther
2026-02-08 17:02:49 +01:00
parent 6d55a34586
commit 34cfeacdbb
@@ -86,6 +86,11 @@ export class AudioManager {
const detail = (event as CustomEvent<{ time: number }>).detail;
if (!detail) return;
if (this.editor.playback.getIsScrubbing()) {
this.stopPlayback();
return;
}
if (this.editor.playback.getIsPlaying()) {
void this.startPlayback({ time: detail.time });
return;