Fixed unable to seek in dashboard

This commit is contained in:
Choco
2023-09-17 18:17:10 +08:00
parent ad6743e9c6
commit 8eeb2d665a

View File

@@ -494,7 +494,7 @@ class Player {
return;
}
let position = tempPosition / 500 * this.currentTrack.length;
this.send({ "op": "updatePosition", "position": position });
this.send({ "op": "updatePosition", "position": Math.trunc(position) });
}
shuffle() {