전략편집기 전략컨트롤 드래그

This commit is contained in:
Macbook
2026-06-15 01:28:56 +09:00
parent b0e2efd7cb
commit 3150dc8af6
7 changed files with 35 additions and 22 deletions
+3 -5
View File
@@ -7,7 +7,7 @@ import {
bindWindowDrag,
isPrimaryPointerButton,
} from './pointerDrag';
import { isDesktop, isMacDesktop } from './platform';
import { isDesktop } from './platform';
export type PaletteDragPayload = Record<string, unknown> & {
type: string;
@@ -96,10 +96,8 @@ function hasCoarsePointer(): boolean {
}
}
/** HTML5 DnD 대신 pointer/touch overlay 드래그 사용 (Windows Desktop 등) */
/** HTML5 DnD 대신 pointer/touch overlay 드래그 (Tauri Desktop 전체 — macOS WKWebView HTML5 DnD 불안정) */
export function needsPointerPaletteDrag(): boolean {
// macOS Tauri WKWebView — Safari 웹과 동일하게 HTML5 DnD 사용
if (isMacDesktop()) return false;
return isDesktop() || hasCoarsePointer();
}
@@ -279,7 +277,7 @@ function startPaletteDragGesture(
finishDrag('end', xy);
}
},
{ preventTouchScroll: true },
{ preventTouchScroll: true, useCapture: isDesktop() },
);
}