전략편집기 전략컨트롤 드래그
This commit is contained in:
@@ -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() },
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user