react-virtualized icon indicating copy to clipboard operation
react-virtualized copied to clipboard

Rendering problems for Grid with big amount of rows

Open martinpesout opened this issue 9 years ago • 9 comments

Hi, in the past there was a problem with rendering in Grid with 40k+ rows (https://github.com/bvaughn/react-virtualized/issues/524). I've found that there is still some problem with this Grid.

Steps to reproduce:

  • Problem is visible on Grid with more rows. It works for table with 10000 rows. It doesn't work for table with 40000 rows.
  • Problem is visible in Chrome (reproduce on Mac devices and on Linux, even when using magic mouse and also on normal mouse with scrollwheel). Than we will have to do many times quick scrolling down and up.

You can reproduce it on your example https://bvaughn.github.io/react-virtualized/#/components/Grid with 40000 rows.

You will get this problem:

snimek obrazovky 2017-02-13 v 13 32 31

uno-13-2017 13-35-03

martinpesout avatar Feb 13 '17 12:02 martinpesout

I'm having the same issue exactly. Using a table and the infinite loader. I have a million row count, but 10,000 works fine.

screen shot 2017-02-13 at 10 41 34 am

Only happens on trackpad. Seems to work fine if I use the scroll bar.

BitByBen avatar Feb 13 '17 16:02 BitByBen

Hm. I'm unable to reproduce this myself (using Chrome 56.0.2924.87, macOS 10.12.3) on the demo site. I just cranked up the demo to 400,000 rows at 30px height each (12M pixels total). Trackpad "fling" scrolling, scrollbar "drag" scrolling, and arrow-key scrolling all seem fine.

high-compression-scrolling

Sorry for crappy demo video. Github has a 10MB limit.

bvaughn avatar Feb 14 '17 00:02 bvaughn

@martinpesout does it flicker if you use the scroll bar to scroll?

johnhaley81 avatar Feb 14 '17 01:02 johnhaley81

To be clear- the above video I attached shows trackpad flinging, scrollbar dragging, and arrow key scrolling as well. All 3 seem fine to me.

bvaughn avatar Feb 14 '17 01:02 bvaughn

It only happens at the very top.

BitByBen avatar Feb 14 '17 01:02 BitByBen

It only happens at the very top.

Ah! That's helpful. I see it now.

bvaughn avatar Feb 14 '17 01:02 bvaughn

I believe I have a fix 😄

bvaughn avatar Feb 14 '17 01:02 bvaughn

Fixed by commit e78036a. Will go out with version 9 (see PR #577)

bvaughn avatar Feb 14 '17 02:02 bvaughn

Sorry for later response. I'm in different timezone 😄 but confirmed. I also had this problem at the top of huge Grids. If I'll move to the middle I cannot reproduce it.

I see that fix is here. Thanks a lot.

martinpesout avatar Feb 14 '17 08:02 martinpesout