From 750f045776ae63dc1fde4f202cb30ffb84d3de55 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 26 Aug 2022 20:32:25 +0200 Subject: [PATCH] scroll chat when textarea is clicked --- files/assets/js/chat.js | 2 +- files/templates/chat.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 4df0e1f06..4de2f2067 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -179,7 +179,7 @@ socket.on('typing', function (users){ function scroll_chat() { setTimeout(function () { box.scrollTo(0, box.scrollHeight) - }, 0100); + }, 0200); } scroll_chat() diff --git a/files/templates/chat.html b/files/templates/chat.html index 6c630d464..49bbdf88a 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -214,6 +214,6 @@ - + \ No newline at end of file