another fix

pull/90/head
Aevann 2023-01-21 13:45:15 +02:00
parent 98135f55c6
commit 51b0952b56
1 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,7 @@ socket.on('catchup', function(json) {
if (existing) break
handle_message(message)
}
box.scrollTo(0, box.scrollHeight)
scroll_chat()
})
function send() {
@ -276,6 +276,7 @@ socket.on('delete', function(text) {
})
function scroll_chat() {
box.scrollTo(0, box.scrollHeight)
setTimeout(function () {
box.scrollTo(0, box.scrollHeight)
}, 200);