Restore old behavior for waifu mode

This commit is contained in:
Cohee 2024-07-22 23:11:36 +03:00
parent 12f6e5069d
commit e84d023191
1 changed files with 5 additions and 0 deletions

View File

@ -9254,6 +9254,11 @@ jQuery(async function () {
});
const chatElementScroll = document.getElementById('chat');
const chatScrollHandler = function () {
if (power_user.waifuMode) {
scrollLock = true;
return;
}
const scrollIsAtBottom = Math.abs(chatElementScroll.scrollHeight - chatElementScroll.clientHeight - chatElementScroll.scrollTop) < 1;
// Cancel autoscroll if the user scrolls up