Open jonp-iversoft opened 5 months ago
Hey!
I think we have a little bug with some scrollBehaviours. Can you try doubling numberOfRenderedItems={15} to numberOfRenderedItems={30}?
Thanks 😊
In that case, the scroll works mostly as expected, but the top item disappears / is removed as the animation is happening. Setting numberOfRenderedItems={32}
resolves the issue completely in my example. However that does affect lazy loading data and could impact performance
OK, then it's a bug we are aware of but needs fixing indeed. That could affect performance indeed!
I can't give any ETA yet for this one, sorry 🙈
sounds good! Thanks for looking into it!
Hey! We had a first fix for the stick-to-end behaviour. Not published yet 😄
https://github.com/bamlab/react-tv-space-navigation/pull/148
Describe the bug When a
SpatialNavigationVirtualizedList
has ascrollBehavior
ofstick-to-end
orjump-on-scroll
, as the items are scrolled before it reaches the end, previous items are removed from the render list and are no longer shown when they should still be on screen.It seems the behavior of
stick-to-start
is still applied as the items are moved and removed in the same way in that view. The only difference is instick-to-start
the list is scrolledTo Reproduce
Expected behavior Items should continue to be rendered until the end of the visible list is hit, the items move, and then any items not shown on the screen can be removed.
Screenshots
Version and OS