fix(workbench): Drag tool window stripe buttons with pointer events

With the window's native file drop enabled, the webview never receives
dragover / drop for HTML5 drags that start inside it, so stripe buttons
could not be moved. Track the drag with pointer events instead: a ghost
follows the pointer, the drop line shows the target, Escape cancels, and
an empty right stripe appears as a drop target while dragging.
Цей коміт міститься в:
l0ng-ai committed 2026-10-24 11:47:02 +08:00
1 джерело be5a6f62ad
коміт 1652866769
2 files changed
+109 -48

No files matched your search

+14
Переглянути файл
@@ -371,6 +371,20 @@
pointer-events: none;
}
.stripeDragged {
opacity: 0.4;
}
.stripeGhost {
position: fixed;
z-index: 1000;
margin: 0;
pointer-events: none;
background: var(--bg-popup);
border-radius: var(--radius-toolbar-button);
box-shadow: var(--shadow-popup);
opacity: 0.9;
}
/* Settings › Appearance › "Different tool window background". */
:global(:root[data-tool-window-bg="different"]) .anchor {
background: var(--bg-elev);