fix(app): timeline jank

This commit is contained in:
Adam 2026-03-03 05:35:07 -06:00
commit e4af1bb422
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 62 additions and 54 deletions

View file

@ -48,14 +48,14 @@ export function createAutoScroll(options: AutoScrollOptions) {
autoTimer = setTimeout(() => {
auto = undefined
autoTimer = undefined
}, 250)
}, 1500)
}
const isAuto = (el: HTMLElement) => {
const a = auto
if (!a) return false
if (Date.now() - a.time > 250) {
if (Date.now() - a.time > 1500) {
auto = undefined
return false
}