perf(grid): optimize virtual scroll to reduce white flash during fast scrolling

Add buffer, skip-hover, will-change, and CSS contain properties to all
RecycleScroller instances (DataGrid, ConnectionTree, ObjectBrowser,
RedisKeyBrowser). Disable pointer-events during scroll in DataGrid to
reduce repaint overhead.
This commit is contained in:
t8y2
2026-05-12 13:50:03 +08:00
parent 368fa5a102
commit 78184544cf
5 changed files with 78 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import type { TreeNode, TreeNodeType } from "@/types/database";
export const SIDEBAR_TREE_ROW_HEIGHT = 28;
export const SIDEBAR_TREE_SCROLL_BUFFER = SIDEBAR_TREE_ROW_HEIGHT * 48;
export const SIDEBAR_TREE_SCROLL_BUFFER = 600;
export const SIDEBAR_TREE_PRERENDER_COUNT = 48;
export interface FlatTreeNode {