mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-15 21:24:48 +00:00
chore: cleanup
This commit is contained in:
@@ -85,7 +85,10 @@ export function createAutoScroll(options: AutoScrollOptions) {
|
||||
if (force && store.userScrolled) setStore("userScrolled", false)
|
||||
|
||||
const distance = distanceFromBottom(el)
|
||||
if (distance < 2) return
|
||||
if (distance < 2) {
|
||||
markAuto(el)
|
||||
return
|
||||
}
|
||||
|
||||
// For auto-following content we prefer immediate updates to avoid
|
||||
// visible "catch up" animations while content is still settling.
|
||||
|
||||
Reference in New Issue
Block a user