From c6bc8752c81552a7c24acd051942d18921873d6a Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 21 Jan 2023 13:40:57 +0200 Subject: [PATCH] more scroll_chat --- files/assets/js/chat.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 8afdc6b55..13d27931b 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -284,9 +284,6 @@ function scroll_chat() { setTimeout(function () { box.scrollTo(0, box.scrollHeight) }, 1000); - setTimeout(function () { - box.scrollTo(0, box.scrollHeight) - }, 1500); } scroll_chat(); @@ -323,3 +320,11 @@ document.onpaste = function(event) { document.getElementById('filename').textContent = filename; } } + +setTimeout(function () { + box.scrollTo(0, box.scrollHeight) +}, 3000); + +setTimeout(function () { + box.scrollTo(0, box.scrollHeight) +}, 5000);