-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix jittery scrolling at bottom of some tables in Chrome (#1409)
Summary: In some cases, `react-window` would get itself stuck in a computation loop relating to overscroll. This turned out to be a consequence of an interaction between `react-window` and [scroll anchoring](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-anchor/Guide_to_scroll_anchoring). By disabling scroll anchoring in this virtualized list, and fixing a performance bug in the table summary's render, the issue goes away completely. Type of change: /kind bugfix Test Plan: Run `px/cluster` in Chrome, or `px/http_data` in Firefox (in the latter case, resize the table to be one "grid unit" shorter and run again). Then, scroll to the bottom of the result tables. Before, they would jitter nonstop in Chrome, or only for a moment in Firefox before it blocks scroll anchoring with a message in the console. Now, they should not jitter at all. Trying a streaming script should still work, even if you scroll all the way down and let it lock there. Signed-off-by: Nick Lanam <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters