Fix Chat scroll bug (issue #374)

pull/1/head
ClemDee 6 years ago
parent 728c2716b4
commit 62eb623f49

@ -548,7 +548,7 @@ define([
};
var isBottomedOut = function ($elem) {
return ($elem[0].scrollHeight - $elem.scrollTop() === $elem.outerHeight());
return ($elem[0].scrollHeight - $elem.scrollTop() === $elem[0].clientHeight);
};
var onMessage = function (message) {
@ -584,7 +584,7 @@ define([
$messagebox.append(el_message);
if (shouldScroll) {
$messagebox.scrollTop($messagebox.outerHeight());
$messagebox.scrollTop($messagebox[0].scrollHeight);
}
normalizeLabels($messagebox);
reorderRooms();

Loading…
Cancel
Save