From f0b48aabff81bdb06fdb3df61119d5056d615e51 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 28 Sep 2023 21:30:41 +0300 Subject: [PATCH] #1194 Fix chat width misbehaving in Firefox --- public/scripts/power-user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index 2836135a6..dee440193 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -526,8 +526,10 @@ function applyChatWidth(type) { //document.documentElement.style.setProperty('--sheldWidth', power_user.chat_width); } else { //this is to prevent the slider from updating page in real time - $("#chat_width_slider").off('mouseup touchend').on('mouseup touchend', () => { + $("#chat_width_slider").off('mouseup touchend').on('mouseup touchend', async () => { + await delay(1); document.documentElement.style.setProperty('--sheldWidth', `${power_user.chat_width}vw`); + await delay(1); }) }