mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
chore: cleanup
This commit is contained in:
parent
6f90c3d73a
commit
70c6fcfbbf
@ -78,11 +78,13 @@ export function createAutoScroll(options: AutoScrollOptions) {
|
||||
|
||||
const scrollToBottom = (force: boolean) => {
|
||||
if (!force && !active()) return
|
||||
|
||||
if (force && store.userScrolled) setStore("userScrolled", false)
|
||||
|
||||
const el = scroll
|
||||
if (!el) return
|
||||
|
||||
if (!force && store.userScrolled) return
|
||||
if (force && store.userScrolled) setStore("userScrolled", false)
|
||||
|
||||
const distance = distanceFromBottom(el)
|
||||
if (distance < 2) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user