From 098296a498837634ecb2a3e9640ddb63981dc5c9 Mon Sep 17 00:00:00 2001 From: ComfyFluffy <24245520+ComfyFluffy@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:39:38 +0800 Subject: [PATCH] fix: delay on click to stop SoundPlayer --- spx-gui/src/components/editor/sound/SoundEditor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spx-gui/src/components/editor/sound/SoundEditor.vue b/spx-gui/src/components/editor/sound/SoundEditor.vue index 5c0c9f37..300bc5b4 100644 --- a/spx-gui/src/components/editor/sound/SoundEditor.vue +++ b/spx-gui/src/components/editor/sound/SoundEditor.vue @@ -123,7 +123,7 @@ function handlePlay() { function handleStopClick() { wavesurferRef.value?.stop() - handleStop() + playing.value = null } function handleStop() {