New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement proposal: isScrolling #127
Comments
"fast" is not something that react-window has any concept of.
I don't know what you mean by this.
You could use a custom This basically skips re-rendering your component if the only thing that changed from I think the default behavior of the library is correct though and this micro-optimization is reasonable to leave up to an application developer. Happy to continue chatting about this if you have more ideas though! Going to close this issue for now since I don't think it's actionable as is. |
Hello Thank you for your fast answer (as usual). I think that I misunderstood the role of 1 - Here is the default behaviour we were trying to evince, see when the screen goes mostly white: 2 - Here is what happens when using 3 - Using your 4 - We can reduce this by setting an I think these efforts were actually vain. Default behaviour (see 1) is the closest of what we expect. Screen going white is not something Nevertheless after these various tests I don't really see a use case for Thank you for your time and the tips |
One thing I noticed about the videos– or at least what I guessed, based on the port number– is that it's running in DEV mode. DEV mode is definitely known to be slower (for React in general) for what it's worth. Measure the production build for more accurate sense of how things are rendering. Looking at your rows, they don't look that "heavy" so I wouldn't expect that you'd need to use |
Thank you for your kind offer, but I have the regret to say that we decided to stop the migration to
Anyway thank you for your support! It is possible that one day we unearth that migration branch when we have more time. |
Hello Brian
I've got positive feedback on the long lists since I implemented usage of
react-window
. Thanks again for the great work.One of the things the users don't like is the white screen when scrolling pretty fast. To reduce this I have set prop
useIsScrolling
and usedisScrolling
row renderer property, but it doesn't seem to take into account if rows have already been rendered.On this example if you scroll very slowly you realize that the "Scrolling" rows are useless and actually degrade the user experience:
https://react-window.now.sh/#/examples/list/scrolling-indicators
Is my explanation clear enough? What do you think?
⇾ Is there a way to make the difference when rendering a row?
⇾ We wish to display 'is scrolling' rows only when user scrolls fast. If needed we are ready to use
overscanCount
prop and test performance on various devices to determine a satisfying threshold, but currently this prop has no effect onisScrolling
value.https://codesandbox.io/s/x3161x9voq
The text was updated successfully, but these errors were encountered: