mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
avoid unnecessary infinite scroll loadUntilFull calls
allow the dom to update before checking if more data is needed
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user