fix autoscroll

This commit is contained in:
Iuri Matias 2019-04-10 22:28:04 -04:00
parent ff613944be
commit ce96f7f650
2 changed files with 2962 additions and 4038 deletions

6997
dist/js/statuswidget.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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) {