Async check in scroll handler for improved scroll performance

This commit is contained in:
Eduard Urbach 2018-11-16 22:23:49 +09:00
parent 2d8407eb1e
commit 806c7850cf

View File

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