chore: cleanup

This commit is contained in:
Adam 2026-03-03 10:25:43 -06:00
parent 6f90c3d73a
commit 70c6fcfbbf
No known key found for this signature in database
GPG Key ID: 9CB48779AF150E75

View File

@ -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) {