From 59685f8bcf5585a94c38fd8a9f01f2fe49f19aae Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Sun, 30 Apr 2023 05:52:19 +0300 Subject: [PATCH] fix: dont set duration to 0 when looping --- src/components/playingnow.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/playingnow.svelte b/src/components/playingnow.svelte index 6478ed5..c50c4d1 100644 --- a/src/components/playingnow.svelte +++ b/src/components/playingnow.svelte @@ -89,10 +89,10 @@ navigator.mediaSession.setPositionState({ position: currentTime, duration }); }} on:ended={(ev) => { - duration = 0; currentTime = 0; switch ($loop) { case LoopKind.Off: + duration = 0; nextQueuePosition(); break; case LoopKind.Once: