mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 07:43:58 +00:00
avoid unnecessary infinite scroll loadUntilFull calls
allow the dom to update before checking if more data is needed
This commit is contained in:
parent
f037c466cd
commit
c29714f427
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,9 @@ define [
|
|||
if (listShorterThanContainer() or atEndOfListView()) and not scope.$eval(attrs.infiniteScrollDisabled)
|
||||
promise = scope.$eval(attrs.infiniteScroll)
|
||||
promise.then () ->
|
||||
loadUntilFull()
|
||||
setTimeout () ->
|
||||
loadUntilFull()
|
||||
, 0
|
||||
|
||||
element.on "scroll", (event) ->
|
||||
loadUntilFull()
|
||||
|
|
Loading…
Reference in a new issue