데스크탑 앱 전략편집기 수정
This commit is contained in:
@@ -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 },
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user