loading...

Discussion on: Build your own virtual scroll - Part II

Collapse
slidenerd profile image
slidenerd

Curious question based on your react example, why have you written const totalHeight =
childPositions[itemCount - 1] + getChildHeight(itemCount - 1) + 35; what is this 35? average row height of an item since it starts at 30 and goes till 39?

Collapse
adamklein profile image
adam klein Author

Oh, thanks for noticing!
Probably leftover - I removed it