mirror of
https://github.com/pomber/git-history.git
synced 2024-11-22 05:33:57 +03:00
Fix line numbers onScroll
This commit is contained in:
parent
653c745d88
commit
98a25722e2
@ -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;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user