question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:30 (17 by maintainers)

github_iconTop GitHub Comments

10reactions
austincondiffcommented, Mar 31, 2020

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 a birdirectionalOverscan to true.

1reaction
bvaughncommented, Dec 20, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found