another fix
parent
98135f55c6
commit
51b0952b56
|
@ -153,7 +153,7 @@ socket.on('catchup', function(json) {
|
||||||
if (existing) break
|
if (existing) break
|
||||||
handle_message(message)
|
handle_message(message)
|
||||||
}
|
}
|
||||||
box.scrollTo(0, box.scrollHeight)
|
scroll_chat()
|
||||||
})
|
})
|
||||||
|
|
||||||
function send() {
|
function send() {
|
||||||
|
@ -276,6 +276,7 @@ socket.on('delete', function(text) {
|
||||||
})
|
})
|
||||||
|
|
||||||
function scroll_chat() {
|
function scroll_chat() {
|
||||||
|
box.scrollTo(0, box.scrollHeight)
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
box.scrollTo(0, box.scrollHeight)
|
box.scrollTo(0, box.scrollHeight)
|
||||||
}, 200);
|
}, 200);
|
||||||
|
|
Loading…
Reference in New Issue