mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Scroll after swipe buttons (for counter)
This commit is contained in:
@ -847,7 +847,6 @@ function addOneMessage(mes, type = "normal") {
|
|||||||
$('#chat .mes').last().addClass('last_mes');
|
$('#chat .mes').last().addClass('last_mes');
|
||||||
$('#chat .mes').eq(-2).removeClass('last_mes');
|
$('#chat .mes').eq(-2).removeClass('last_mes');
|
||||||
//$textchat.scrollTop(($textchat[0].scrollHeight));
|
//$textchat.scrollTop(($textchat[0].scrollHeight));
|
||||||
$('#chat .mes').last().get(0).scrollIntoView({ behavior: "smooth" });
|
|
||||||
|
|
||||||
|
|
||||||
//console.log(chat[chat.length - 1].["swipes"]);
|
//console.log(chat[chat.length - 1].["swipes"]);
|
||||||
@ -862,6 +861,8 @@ function addOneMessage(mes, type = "normal") {
|
|||||||
hideSwipeButtons();
|
hideSwipeButtons();
|
||||||
//console.log('addonemessage calling showSwipeBtns');
|
//console.log('addonemessage calling showSwipeBtns');
|
||||||
showSwipeButtons();
|
showSwipeButtons();
|
||||||
|
|
||||||
|
$('#chat .mes').last().get(0).scrollIntoView({ behavior: "smooth" });
|
||||||
}
|
}
|
||||||
|
|
||||||
function substituteParams(content) {
|
function substituteParams(content) {
|
||||||
|
Reference in New Issue
Block a user