From 0a7382f6c844e9040486fc5378231e3c451c2bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 17 Jan 2023 01:23:50 -0500 Subject: [PATCH] fix: update text when dragging --- public/src/client/topic/glance.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/client/topic/glance.js b/public/src/client/topic/glance.js index 6a3a6b7551..2039cbe83f 100644 --- a/public/src/client/topic/glance.js +++ b/public/src/client/topic/glance.js @@ -75,7 +75,9 @@ function enableHandle() { return; } - const tUpdateHandleText = utils.debounce(updateHandleText, 250); + const tUpdateHandleText = utils.throttle(() => { + updateHandleText(getIndexFromTrack()); + }, 250); toggle(true); active = true;