Restore old behavior for waifu mode
| @@ -9254,6 +9254,11 @@ jQuery(async function () { | ||
| 9254 | 9254 | }); |
| 9255 | 9255 | const chatElementScroll = document.getElementById('chat'); |
| 9256 | 9256 | const chatScrollHandler = function () { |
| 9257 | + if (power_user.waifuMode) { | |
| 9258 | + scrollLock = true; | |
| 9259 | + return; | |
| 9260 | + } | |
| 9261 | + | |
| 9257 | 9262 | const scrollIsAtBottom = Math.abs(chatElementScroll.scrollHeight - chatElementScroll.clientHeight - chatElementScroll.scrollTop) < 1; |
| 9258 | 9263 | |
| 9259 | 9264 | // Cancel autoscroll if the user scrolls up |