cheton / infinite-tree

A browser-ready tree library that can efficiently display a large amount of data using infinite scrolling.
https://infinite-tree.js.org
MIT License
170 stars 38 forks source link

Flickering when scrolling down #56

Closed nevermind10844 closed 4 months ago

nevermind10844 commented 4 years ago

Hey there,

I have a tree view displaysing a couple of hundred items. When scrolling down to a certain position it begins to flicker like crazy. Going up and down from empty space to some elements above.

When I manipulate the rowsInBlock or blockInCluster to where no scrolling would be needed, it just works fine. But that is not what I would like to do to fix it.

Can you help me out?

Thanks in advance!

sandupostaru commented 3 years ago

Hello,

Any news regarding this issue? Have you managed to find a solution?

Thanks!

nevermind10844 commented 3 years ago

Hello,

Any news regarding this issue? Have you managed to find a solution?

Thanks!

Nothing unfortunately,

sandupostaru commented 3 years ago

That's too bad... Have you explored other tree libraries by any chance?

cheton commented 2 years ago

Hi @nevermind10844

You can try to create an example on CodeSandbox that will always reproduce the flickering issue. This can help accerlerate the issue resolution time.

cheton commented 2 years ago

v1.17.0 might help if you can find a good option to control the number of rows and blocks to be rendered

See PR https://github.com/cheton/infinite-tree/pull/54