Skip to content

Commit

Permalink
Fixed onViewableItemsChanged function
Browse files Browse the repository at this point in the history
  • Loading branch information
labtorie authored and marcocesarato committed Feb 23, 2022
1 parent 6b660c1 commit 7c67cbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/BigList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ class BigList extends PureComponent {
if (type === BigListItemType.ITEM) {
return {
item: this.getItem({ section, index }),
section: section,
key: key,
index: (section + 1) * index,
isViewable: this.isVisible({ section, index }),
Expand Down Expand Up @@ -581,7 +582,7 @@ class BigList extends PureComponent {
let s = 0;

while (s <= section) {
const rows = Math.ceil(sections[section] / numColumns);
const rows = Math.ceil(sections[s] / numColumns);
if (rows === 0) {
s += 1;
continue;
Expand Down

0 comments on commit 7c67cbd

Please sign in to comment.