데스크탑 앱 전략편집기 수정

This commit is contained in:
Macbook
2026-06-14 22:39:00 +09:00
parent 76ffa5ac52
commit 21f5d16b6f
4 changed files with 134 additions and 47 deletions
+1 -3
View File
@@ -108,16 +108,14 @@ function beginDrag(payload: PaletteDragPayload, label: string, xy: ClientXY) {
ensureGhost(label, xy.x, xy.y);
emit({ phase: 'start', x: xy.x, y: xy.y, payload });
let lastXY = xy;
unbindMove = bindWindowDrag(
({ x, y }) => {
lastXY = { x, y };
moveGhost(x, y);
if (activePayload) {
emit({ phase: 'move', x, y, payload: activePayload });
}
},
() => finishDrag('end', lastXY),
(endXY) => finishDrag('end', endXY),
{ preventTouchScroll: true },
);
}