forked from rDrama/rDrama
make sure chat scrolls
parent
657f7aa3d1
commit
1488af13d8
|
@ -124,6 +124,9 @@ socket.on('speak', function(json) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
box.scrollTo(0, box.scrollHeight)
|
box.scrollTo(0, box.scrollHeight)
|
||||||
}, 500);
|
}, 500);
|
||||||
|
setTimeout(function () {
|
||||||
|
box.scrollTo(0, box.scrollHeight)
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -160,6 +163,9 @@ function send() {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
box.scrollTo(0, box.scrollHeight)
|
box.scrollTo(0, box.scrollHeight)
|
||||||
}, 500);
|
}, 500);
|
||||||
|
setTimeout(function () {
|
||||||
|
box.scrollTo(0, box.scrollHeight)
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue