Fix line numbers onScroll

This commit is contained in:
Arminkhodaei 2019-06-28 00:13:29 +04:30
parent 653c745d88
commit 98a25722e2

View File

@ -33,11 +33,12 @@ export default function useChildren({
bottomPlaceholderH += itemH;
} else {
children.push(getRow(item, visibleItemNumber, i, data));
// if the middle property is true, the item(line) is shown
// and the related counter has to be increased by one
if (item.middle) visibleItemNumber++;
}
// if the middle property is true, the item(line) is shown
// and the related counter has to be increased by one
if (item.middle) visibleItemNumber++;
h = nextH;
});