fix(ui): keep the arrow cursor during scrollbar drags (#5504)

Dragging a scrollbar thumb across a split divider could show the resize cursor while the page was still scrolling. In a side-by-side Markdown editor, pressing the outside edge of the source thumb could start resizing the pane.
Keep the arrow until the scrollbar drag ends and keep the source thumb clear of the Markdown divider. A transparent surface catches the pointer during the drag, so grabbing the thumb does not change inherited styles across the document.

Co-authored-by: faysou <[email protected]>
Цей коміт міститься в:
faysouтаfaysou authored and GitHub committed 2026-11-24 07:29:51 +08:00
1 джерело 4b4c25d7b1
коміт 2f8d5f5118
7 files changed
+124 -18

No files matched your search

+7
Переглянути файл
@@ -21,6 +21,13 @@
display: flex;
flex-direction: column;
}
/* Keep the thumb clear of the side-by-side divider's mouse hit area. */
.mode-split
.group:has(> :global([data-separator][aria-orientation="vertical"]))
.editor
:global(.cm-openidea-overviewThumb) {
right: 5px;
}
.mode-preview > :global([data-group]) > :global([data-panel]:first-child) {
display: none !important;
}