mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 19:07:40 +01:00
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;
|
||||
|
||||
// Cancel autoscroll if the user scrolls up
|
||||
// Resume autoscroll if the user scrolls to the bottom
|
||||
if (scrollLock && scrollIsAtBottom) {
|
||||
scrollLock = false;
|
||||
}
|
||||
|
||||
// Resume autoscroll if the user scrolls to the bottom
|
||||
// Cancel autoscroll if the user scrolls up
|
||||
if (!scrollLock && !scrollIsAtBottom) {
|
||||
scrollLock = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user