From e84d0231916630e67ef5a3fb4693bb454fa39a82 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:11:36 +0300 Subject: [PATCH] Restore old behavior for waifu mode --- public/script.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/script.js b/public/script.js index 091ac68f9..60c2d2b7e 100644 --- a/public/script.js +++ b/public/script.js @@ -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