From 8eeb2d665a589c6e980b1ef4e881ea9b545ecdaf Mon Sep 17 00:00:00 2001 From: Choco <94597336+ChocoMeow@users.noreply.github.com> Date: Sun, 17 Sep 2023 18:17:10 +0800 Subject: [PATCH] Fixed unable to seek in dashboard --- web/static/js/objects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/static/js/objects.js b/web/static/js/objects.js index 7ccd622..2ff9229 100644 --- a/web/static/js/objects.js +++ b/web/static/js/objects.js @@ -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() {