fix image scrolling in chat

pull/195/head
Aevann 2023-08-20 20:03:20 +03:00
parent 767b777e83
commit a13cc458a4
1 changed files with 5 additions and 1 deletions

View File

@ -164,8 +164,12 @@ socket.on('speak', function(json) {
register_new_elements(line2);
bs_trigger(line2)
if (scrolled_down || json.user_id == vid)
if (scrolled_down || json.user_id == vid) {
box.scrollTo(0, box.scrollHeight)
setTimeout(function () {
box.scrollTo(0, box.scrollHeight)
}, 200);
}
})
function send() {