fix(workbench): keep the resize cursor while dragging a splitter (#2560)

A resize drag set document.body.style.cursor, so as soon as the pointer left the 1px handle the element under it (tree, editor, button) showed its own cursor mid-drag. The drag now holds the cursor on <html> with a data-drag-cursor rule that overrides descendant cursors, released on pointerup/pointercancel/window blur, with nested locks restoring the outer cursor. Tool-window gaps, split and stripe handles, the dialog resize grip and database / Git Log column resizing share it, and the handles use ew-resize / ns-resize throughout.

Co-authored-by: makise2060 <[email protected]>
Цей коміт міститься в:
DrPepperтаmakise2060 authored and GitHub committed 2026-11-11 00:06:59 +08:00
1 джерело bf54006f05
коміт e09cb2353f
13 files changed
+173 -20

No files matched your search

+3 -3
Переглянути файл
@@ -133,10 +133,10 @@
grid-area: gap-bottom;
}
.gap[aria-orientation="vertical"] {
cursor: col-resize;
cursor: ew-resize;
}
.gap[aria-orientation="horizontal"] {
cursor: row-resize;
cursor: ns-resize;
}
/* A slightly wider hit area than the gap itself. */
.gap::before {
@@ -209,7 +209,7 @@
flex: none;
width: 0;
outline: none;
cursor: col-resize;
cursor: ew-resize;
}
.stripeHandle::before {
content: "";