overscanning kicks in *after* the user scrolls in either direction?
See original GitHub issue(I’m happy to post GIF of Chrome’s paint-flashing debug should you not understand the case)
In a nutshell, I specified x overscanCount
, and I was expecting to have x rows (pre)rendered top and bottom of List
at all times. That way when the user suddenly changes scroll direction from up
to down
or vice versa, there is literally no flash of unstyled content.
AFAIK, react-window
does overscanning in one direction only and that direction is determined once the user starts scrolling in the said direction. First scroll event that is. Due to which, the “repaint” happens in the visible viewport which isn’t that pretty.
Issue Analytics
- State:
- Created 5 years ago
- Comments:30 (17 by maintainers)
Top Results From Across the Web
Maybe when the scrolling stops?
react-window only "overscans" (pre-renders) in the forward direction (the direction ... overscanning kicks in *after* the user scrolls in either direction?
Read more >Sony NSX-32GT1 Google Internet TV LCD HDTV Review
The TV is pretty easy to set up as well, since it comes fully assembled. ... We therefore don't use any of these...
Read more >Using Weird Displays with Raspberry Pi
They'll either downsample the Pi's default 1080p resolution, or the two can negotiate a mutually-compatible resolution. Super easy. When ...
Read more >Furnace™
Use the following guidelines when unsafe conditions exist or when potentially ... Dell Server LCD automatically displays the appliance's IP Address.
Read more >AndyCine C5 5.5″ Ultrabright 3000nits Touchscreen ...
I approach each and every review the same regardless of how much the ... It is far easier to use the scroll wheel...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any movement on this issue?
I agree that while this isn’t a common use-case, it is still a use-case and while it increases the amount of scripts run, as mentioned memoization should negate this concern.
My argument is that in applications where attention UX is critical, things like this stick out like a sore thumb and make things look broken.
I don’t see any harm in at least allowing for this behavior either by specifying a
reverseOverscanCount
amount or setting abirdirectionalOverscan
totrue
.That’s a reasonable suggestion, but it would also add complexity since list and grid would need to now track some extra state to know (a) when to preserve these backwards rows and (b) when to throw them out if e.g.
props
changed.It’s worth giving some thought.
For what it’s worth, we hope to add more support for windowing to React core in the near to medium future. So some behaviors like we’re talking about might be moved into the framework.