Restore old behavior for waifu mode

e84d0231916630e67ef5a3fb4693bb454fa39a82

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

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