From e4287b856782f697ce1143ff45b2e41ade02ab36 Mon Sep 17 00:00:00 2001 From: Jaybe Date: Mon, 17 Nov 2025 18:59:28 +0900 Subject: [PATCH] =?UTF-8?q?CI=20E2E=20=EC=88=98=EC=A0=95:=20=EC=BA=94?= =?UTF-8?q?=EB=B2=84=EC=8A=A4=20=EB=B9=88=20=EC=98=81=EC=97=AD=20=ED=81=B4?= =?UTF-8?q?=EB=A6=AD=20=EC=8B=9C=20=EB=A7=88=ED=80=B4=20=ED=95=AD=EC=83=81?= =?UTF-8?q?=20=EC=8B=9C=EC=9E=91=ED=95=98=EB=8F=84=EB=A1=9D=20=ED=83=80?= =?UTF-8?q?=EA=B9=83=20=ED=8C=90=EC=A0=95=20=EC=99=84=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/wysiwyg/Canvas.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/wysiwyg/Canvas.tsx b/components/wysiwyg/Canvas.tsx index 68b904a..7121d0a 100644 --- a/components/wysiwyg/Canvas.tsx +++ b/components/wysiwyg/Canvas.tsx @@ -434,9 +434,11 @@ export function Canvas({ frame, onChange, onSelectIds, enableGuides = true }: Ca tabIndex={0} onKeyDown={onKeyDown} onMouseDown={(e) => { - // 빈 캔버스 클릭 시 마퀴 시작 또는 선택 해제 - // 객체 onMouseDown에서 선택을 처리하므로, 여기서는 드래그 박스 시작만 담당 - if ((e.target as HTMLElement).dataset.testid === 'wysiwyg-canvas') { + // 빈 영역(객체/핸들이 아닌 영역) 클릭 시 마퀴 시작 또는 선택 해제 + const t = e.target as HTMLElement + const isObj = !!t.closest('[data-testid^="obj-"],[aria-label^="object "]') + const isHandle = !!t.closest('[data-testid^="resize-handle-"]') + if (!isObj && !isHandle) { setSelectedIds([]) setMarquee({ active: true, x0: e.clientX, y0: e.clientY, x1: e.clientX, y1: e.clientY }) try { onSelectIds?.([]) } catch {}