mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Restore old behavior for waifu mode
This commit is contained in:
@ -9254,6 +9254,11 @@ jQuery(async function () {
|
|||||||
});
|
});
|
||||||
const chatElementScroll = document.getElementById('chat');
|
const chatElementScroll = document.getElementById('chat');
|
||||||
const chatScrollHandler = function () {
|
const chatScrollHandler = function () {
|
||||||
|
if (power_user.waifuMode) {
|
||||||
|
scrollLock = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const scrollIsAtBottom = Math.abs(chatElementScroll.scrollHeight - chatElementScroll.clientHeight - chatElementScroll.scrollTop) < 1;
|
const scrollIsAtBottom = Math.abs(chatElementScroll.scrollHeight - chatElementScroll.clientHeight - chatElementScroll.scrollTop) < 1;
|
||||||
|
|
||||||
// Cancel autoscroll if the user scrolls up
|
// Cancel autoscroll if the user scrolls up
|
||||||
|
Reference in New Issue
Block a user