fix autoscroll
This commit is contained in:
parent
ff613944be
commit
ce96f7f650
File diff suppressed because one or more lines are too long
|
@ -54,8 +54,7 @@ window.StatusWidget = function (channelName, chatWidget) {
|
|||
chatBox.append(div);
|
||||
lastMessageUser = message.username;
|
||||
|
||||
var element = document.getElementById("chat");
|
||||
element.scrollTop = element.scrollHeight;
|
||||
chatBox.scrollTop = chatBox.scrollHeight;
|
||||
});
|
||||
|
||||
chatInput.addEventListener("keyup", function(event) {
|
||||
|
|
Loading…
Reference in New Issue