Async check in scroll handler for improved scroll performance
This commit is contained in:
parent
2d8407eb1e
commit
806c7850cf
@ -21,8 +21,9 @@ export default class InfiniteScroller {
|
||||
return
|
||||
}
|
||||
|
||||
// Otherwise, check immediately.
|
||||
check()
|
||||
// Otherwise, queue up the check immediately.
|
||||
// Don't call check() directly to make scrolling as smooth as possible.
|
||||
Diff.mutations.queue(check)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user