From 24ef21e6badad965fd61b51db8c617a573a4478d Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Sun, 7 Aug 2022 00:04:50 +0300 Subject: [PATCH] fix seek --- src/stores/queue.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stores/queue.ts b/src/stores/queue.ts index fad0cf4..8bc1a32 100644 --- a/src/stores/queue.ts +++ b/src/stores/queue.ts @@ -121,8 +121,7 @@ export default defineStore("Queue", { }, seek(pos: number) { try { - const a = (pos / 100) * this.audio.duration; - this.audio.currentTime = a; + this.audio.currentTime = pos; } catch (error) { if (error instanceof TypeError) { console.error("Seek error: no audio");