дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
fix(vcs): keep Git Log rows painted while dragging the scrollbar (#1914)
Dragging the Git Log scrollbar through a long history stuttered and showed blank rows: the native scrollbar scrolls asynchronously in WebKit, so the virtual list rendered rows a frame or more after the new offset was painted. The list now uses a scrollbar drawn in the DOM (`Scrollbar` in `src/ui`) that sets the offset from pointer events and notifies scroll listeners at once, so the virtualizer renders the matching rows before the next paint. Rows are keyed by slot so a large jump updates the mounted rows instead of rebuilding them, overscan is lowered, and rows rendered mid-scroll draw their graph without edge hit targets, which come back once scrolling stops. Adds a `gitLogScrollbar` perf scenario with budgets.
Цей коміт міститься в:
1 джерело
159c2d6fd2
коміт
b99fe1704b
8 files changed
+414
-46
No files matched your search
@@ -0,0 +1,27 @@
|
||||
/* Same look as the global ::-webkit-scrollbar (global.css). */
|
||||
.track {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 10px;
|
||||
z-index: 1;
|
||||
}
|
||||
.thumb {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
border: 2px solid transparent;
|
||||
border-radius: 6px;
|
||||
background-clip: content-box;
|
||||
background-color: var(--scrollbar-thumb);
|
||||
will-change: transform;
|
||||
}
|
||||
.thumb:hover,
|
||||
.thumb[data-dragging] {
|
||||
background-color: var(--scrollbar-thumb-hover);
|
||||
}
|
||||
/* For the scroller whose vertical scrollbar `Scrollbar` draws. */
|
||||
.hideNative::-webkit-scrollbar:vertical {
|
||||
width: 0;
|
||||
}
|
||||
Reference in new issue
Заблокувати користувача