дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-08 19:02:17 +02:00
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.
Цей коміт міститься в:
1 джерело
be5a6f62ad
коміт
1652866769
2 files changed
+109
-48
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Заблокувати користувача