mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix scroll to bottom on chat open
This commit is contained in:
@ -1607,7 +1607,7 @@ export async function printMessages() {
|
|||||||
|
|
||||||
for (let i = startIndex; i < chat.length; i++) {
|
for (let i = startIndex; i < chat.length; i++) {
|
||||||
const item = chat[i];
|
const item = chat[i];
|
||||||
addOneMessage(item, { scroll: i === chat.length - 1, forceId: i, showSwipes: false });
|
addOneMessage(item, { scroll: false, forceId: i, showSwipes: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scroll to bottom when all images are loaded
|
// Scroll to bottom when all images are loaded
|
||||||
@ -1629,6 +1629,7 @@ export async function printMessages() {
|
|||||||
$('#chat .mes').last().addClass('last_mes');
|
$('#chat .mes').last().addClass('last_mes');
|
||||||
hideSwipeButtons();
|
hideSwipeButtons();
|
||||||
showSwipeButtons();
|
showSwipeButtons();
|
||||||
|
scrollChatToBottom();
|
||||||
|
|
||||||
function incrementAndCheck() {
|
function incrementAndCheck() {
|
||||||
imagesLoaded++;
|
imagesLoaded++;
|
||||||
|
Reference in New Issue
Block a user