forked from mystiq/hydrogen-web
Improve containsIndex
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
3ae52ea1ca
commit
e10b494f0c
1 changed files with 1 additions and 3 deletions
|
@ -43,9 +43,7 @@ class ItemRange {
|
||||||
}
|
}
|
||||||
|
|
||||||
containsIndex(idx) {
|
containsIndex(idx) {
|
||||||
// TODO: Replace by lastIndex
|
return idx >= this.topCount && idx < this.lastIndex;
|
||||||
// TODO: Should idx be <= since lastIndex is not rendered?
|
|
||||||
return idx >= this.topCount && idx <= (this.topCount + this.renderCount);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
expand(amount) {
|
expand(amount) {
|
||||||
|
|
Loading…
Reference in a new issue