| @@ -9261,12 +9261,12 @@ jQuery(async function () { | ||
| 9261 | 9261 | |
| 9262 | 9262 | const scrollIsAtBottom = Math.abs(chatElementScroll.scrollHeight - chatElementScroll.clientHeight - chatElementScroll.scrollTop) < 1; |
| 9263 | 9263 | |
| 9264 | 9264 | // CancelResume autoscroll if the user scrolls upto the bottom |
| 9265 | 9265 | if (scrollLock && scrollIsAtBottom) { |
| 9266 | 9266 | scrollLock = false; |
| 9267 | 9267 | } |
| 9268 | 9268 | |
| 9269 | 9269 | // ResumeCancel autoscroll if the user scrolls to the bottomup |
| 9270 | 9270 | if (!scrollLock && !scrollIsAtBottom) { |
| 9271 | 9271 | scrollLock = true; |
| 9272 | 9272 | } |