fix(app): timeline jank
This commit is contained in:
parent
5e8742f431
commit
e4af1bb422
3 changed files with 62 additions and 54 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue