Fix g scroll

This commit is contained in:
BordedDev 2025-07-19 00:00:29 +02:00
parent 5ac49522d9
commit 11e19f48e8

View File

@ -227,7 +227,7 @@ document.addEventListener('keydown', function(event) {
keyTimeout = setTimeout(() => { gPressCount = 0; }, 300);
if (gPressCount === 2) {
gPressCount = 0;
messagesContainer.querySelector(".message:first-child")?.scrollIntoView({ block: "end", inline: "nearest" });
messagesContainer.lastElementChild?.scrollIntoView({ block: "end", inline: "nearest" });
loadExtra();
}
}