-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
[BUG]: followOutput breaks during fast updates (Brave, Chromium 108) #844
Comments
Do you see the same problem in Chrome? Because I don't (Vanilla Chrome v109). |
OK, that explains it. This is a known limitation, here's the summary:
The example above can sometimes meet those conditions (if the first rendered item has one-line text, while the subsequent ones have two lines, this is why the sandbox viewport width matters). There's a more reliable way to reproduce it, by making the first item shorter. The workaround I can recommend is to reduce the update frequency to at least 200ms by throttling. Also, you can extend the viewport to the bottom, so that newly introduced items are rendered before scrollToIndex happens. |
Describe the bug
followOutput breaks during fast updates
Reproduction
A sandbox containing a modified https://virtuoso.dev/stick-to-bottom/ example.
I changed data generation from 400ms to 100ms
https://codesandbox.io/s/sandpack-project-forked-1g9yfw?file=/App.js
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Output should continue being followed
Desktop (please complete the following information):
I am NOT seeing the same issue running on Safari version 15.5 (17613.2.7.1.8)
Additional context
Sticking to the bottom seems to be more reliable with followOutput set to 'smooth' during fast updates.
Additional discussion about this issue can be found in here. Mine is slightly different due to using 'auto' for followOutput which should be used for fast updates.
#317 (comment)
The text was updated successfully, but these errors were encountered: