diff --git a/src/platform/web/ui/general/LazyListView.js b/src/platform/web/ui/general/LazyListView.js index b0d28c51..2c070d95 100644 --- a/src/platform/web/ui/general/LazyListView.js +++ b/src/platform/web/ui/general/LazyListView.js @@ -43,9 +43,7 @@ class ItemRange { } containsIndex(idx) { - // TODO: Replace by lastIndex - // TODO: Should idx be <= since lastIndex is not rendered? - return idx >= this.topCount && idx <= (this.topCount + this.renderCount); + return idx >= this.topCount && idx < this.lastIndex; } expand(amount) {