Scroll after swipe buttons (for counter)

This commit is contained in:
SillyLossy
2023-03-20 00:36:17 +02:00
parent 15edcbb4ac
commit c1cd609ade

View File

@ -847,7 +847,6 @@ function addOneMessage(mes, type = "normal") {
$('#chat .mes').last().addClass('last_mes');
$('#chat .mes').eq(-2).removeClass('last_mes');
//$textchat.scrollTop(($textchat[0].scrollHeight));
$('#chat .mes').last().get(0).scrollIntoView({ behavior: "smooth" });
//console.log(chat[chat.length - 1].["swipes"]);
@ -862,6 +861,8 @@ function addOneMessage(mes, type = "normal") {
hideSwipeButtons();
//console.log('addonemessage calling showSwipeBtns');
showSwipeButtons();
$('#chat .mes').last().get(0).scrollIntoView({ behavior: "smooth" });
}
function substituteParams(content) {