Comments are reverse

9b97d88aeeebb1ebd8c4925ccde2819040ee3d22

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

Signed
1 files changed, +2 -2Showing whitespace changes
public/script.js+2 -2
@@ -9261,12 +9261,12 @@ jQuery(async function () {
92619261
9262 const scrollIsAtBottom = Math.abs(chatElementScroll.scrollHeight - chatElementScroll.clientHeight - chatElementScroll.scrollTop) < 1;9262 const scrollIsAtBottom = Math.abs(chatElementScroll.scrollHeight - chatElementScroll.clientHeight - chatElementScroll.scrollTop) < 1;
92639263
9264 // Cancel autoscroll if the user scrolls up9264 // Resume autoscroll if the user scrolls to the bottom
9265 if (scrollLock && scrollIsAtBottom) {9265 if (scrollLock && scrollIsAtBottom) {
9266 scrollLock = false;9266 scrollLock = false;
9267 }9267 }
92689268
9269 // Resume autoscroll if the user scrolls to the bottom9269 // Cancel autoscroll if the user scrolls up
9270 if (!scrollLock && !scrollIsAtBottom) {9270 if (!scrollLock && !scrollIsAtBottom) {
9271 scrollLock = true;9271 scrollLock = true;
9272 }9272 }