fix: refine scroll timeout to 1s for better auto-scroll response
All checks were successful
BotUI CI/CD / build (push) Successful in 40s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-14 16:42:19 -03:00
parent a46f6d20c3
commit 1249554df4

View file

@ -451,11 +451,11 @@
isUserScrolling = true;
updateScrollButton();
// Reset isUserScrolling after 2 seconds of no scrolling
// Reset isUserScrolling after 1 second of no scrolling
clearTimeout(messagesEl.scrollTimeout);
messagesEl.scrollTimeout = setTimeout(function () {
isUserScrolling = false;
}, 2000);
}, 1000);
});
}