Restore old behavior for waifu mode

e84d0231916630e67ef5a3fb4693bb454fa39a82

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +5 -0Ignore whitespace
public/script.js+5 -0
@@ -9254,6 +9254,11 @@ jQuery(async function () {
9254 });9254 });
9255 const chatElementScroll = document.getElementById('chat');9255 const chatElementScroll = document.getElementById('chat');
9256 const chatScrollHandler = function () {9256 const chatScrollHandler = function () {
9257 if (power_user.waifuMode) {
9258 scrollLock = true;
9259 return;
9260 }
9261
9257 const scrollIsAtBottom = Math.abs(chatElementScroll.scrollHeight - chatElementScroll.clientHeight - chatElementScroll.scrollTop) < 1;9262 const scrollIsAtBottom = Math.abs(chatElementScroll.scrollHeight - chatElementScroll.clientHeight - chatElementScroll.scrollTop) < 1;
92589263
9259 // Cancel autoscroll if the user scrolls up9264 // Cancel autoscroll if the user scrolls up