Comments are reverse
This commit is contained in:
parent
e84d023191
commit
9b97d88aee
|
@ -9261,12 +9261,12 @@ jQuery(async function () {
|
||||||
|
|
||||||
const scrollIsAtBottom = Math.abs(chatElementScroll.scrollHeight - chatElementScroll.clientHeight - chatElementScroll.scrollTop) < 1;
|
const scrollIsAtBottom = Math.abs(chatElementScroll.scrollHeight - chatElementScroll.clientHeight - chatElementScroll.scrollTop) < 1;
|
||||||
|
|
||||||
// Cancel autoscroll if the user scrolls up
|
// Resume autoscroll if the user scrolls to the bottom
|
||||||
if (scrollLock && scrollIsAtBottom) {
|
if (scrollLock && scrollIsAtBottom) {
|
||||||
scrollLock = false;
|
scrollLock = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resume autoscroll if the user scrolls to the bottom
|
// Cancel autoscroll if the user scrolls up
|
||||||
if (!scrollLock && !scrollIsAtBottom) {
|
if (!scrollLock && !scrollIsAtBottom) {
|
||||||
scrollLock = true;
|
scrollLock = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue