#1194 Fix chat width misbehaving in Firefox

This commit is contained in:
Cohee 2023-09-28 21:30:41 +03:00
parent 191c180946
commit f0b48aabff
1 changed files with 3 additions and 1 deletions

View File

@ -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);
})
}