make sure chat scrolls

pull/216/head
Aevann 2023-10-15 18:14:47 +03:00
parent 657f7aa3d1
commit 1488af13d8
1 changed files with 6 additions and 0 deletions

View File

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