mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
parent
2091a5b41b
commit
28528dc865
1 changed files with 3 additions and 4 deletions
|
@ -1306,15 +1306,14 @@ $(function() {
|
|||
"pagedown"
|
||||
], function(e, key) {
|
||||
let container = windows.find(".window.active");
|
||||
if (container.is(":animated")) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Chat windows scroll message container
|
||||
if (container.attr("id") === "chat-container") {
|
||||
container = container.find(".chan.active .chat");
|
||||
}
|
||||
|
||||
container.finish();
|
||||
|
||||
const offset = container.get(0).clientHeight * 0.9;
|
||||
let scrollTop = container.scrollTop();
|
||||
|
||||
|
@ -1324,7 +1323,7 @@ $(function() {
|
|||
scrollTop = Math.ceil(scrollTop + offset);
|
||||
}
|
||||
|
||||
container.stop().animate({
|
||||
container.animate({
|
||||
scrollTop: scrollTop
|
||||
}, 200);
|
||||
|
||||
|
|
Loading…
Reference in a new issue