Restore old behavior for waifu mode
This commit is contained in:
parent
12f6e5069d
commit
e84d023191
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue