From 1488af13d8118a78b75d754dc4ad17cd5095f3d2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 15 Oct 2023 18:14:47 +0300 Subject: [PATCH] make sure chat scrolls --- files/assets/js/chat.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 93b9e8339..6038af0ae 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -124,6 +124,9 @@ socket.on('speak', function(json) { setTimeout(function () { box.scrollTo(0, box.scrollHeight) }, 500); + setTimeout(function () { + box.scrollTo(0, box.scrollHeight) + }, 1000); } }) @@ -160,6 +163,9 @@ function send() { setTimeout(function () { box.scrollTo(0, box.scrollHeight) }, 500); + setTimeout(function () { + box.scrollTo(0, box.scrollHeight) + }, 1000); } }