fix: refine scroll timeout to 1s for better auto-scroll response
All checks were successful
BotUI CI/CD / build (push) Successful in 40s
All checks were successful
BotUI CI/CD / build (push) Successful in 40s
This commit is contained in:
parent
a46f6d20c3
commit
1249554df4
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue