mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 05:50:22 +00:00
Correctly calculate scroll when loading more history
This commit is contained in:
parent
08fbcd4958
commit
72a534f42b
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ socket.on("more", function(data) {
|
|||
|
||||
// get the scrollable wrapper around messages
|
||||
const scrollable = chan.closest(".chat");
|
||||
const heightOld = chan.height();
|
||||
const heightOld = chan.height() - scrollable.scrollTop();
|
||||
|
||||
// If there are no more messages to show, just hide the button and do nothing else
|
||||
if (!data.messages.length) {
|
||||
|
|
Loading…
Reference in a new issue