mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-01 00:25:38 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user