mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-28 13:01:15 +00:00
fix seek
This commit is contained in:
1 parent
ffcc0070a0
commit
24ef21e6ba
1 file changed
+1
-2
+1
-2
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user