From 6d8d56e7cbb70cc02aab7ebd652a90756d65a878 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Mon, 27 Apr 2026 10:15:58 +0900 Subject: [PATCH] =?UTF-8?q?fix(study):=20=EC=BA=94=EB=B2=84=EC=8A=A4=20?= =?UTF-8?q?=EB=94=94=EB=B2=84=EA=B7=B8=20=EC=98=A4=EB=B2=84=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=20=EC=A0=9C=EA=B1=B0=20(=EC=A2=8C=ED=91=9C=20?= =?UTF-8?q?=ED=91=9C=EC=8B=9C=20=EA=B1=B0=EC=8A=AC=EB=A6=BC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lib/components/HandwriteCanvas.svelte | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/frontend/src/lib/components/HandwriteCanvas.svelte b/frontend/src/lib/components/HandwriteCanvas.svelte index ec80a99..cb17178 100644 --- a/frontend/src/lib/components/HandwriteCanvas.svelte +++ b/frontend/src/lib/components/HandwriteCanvas.svelte @@ -79,9 +79,6 @@ const WIDTH_FACTOR: Record = { thin: 0.6, normal: 1, thick: 1.6 }; let effectiveSize = $derived(baseSize * WIDTH_FACTOR[widthMode]); - // 디버그: 캔버스 크기 + 마지막 pointer 정보. 좌표 어긋남 디버깅용. - let lastDebug = $state<{x:number;y:number;p:number;t:string} | null>(null); - // 지우개 반경 (CSS px) — effectiveSize 의 약 4배. Apple Pencil 정밀도와 균형. let eraserRadius = $derived(Math.max(16, effectiveSize * 4)); @@ -246,7 +243,6 @@ activePointerId = e.pointerId; const [x, y] = getLocalXY(e); - lastDebug = { x: Math.round(x), y: Math.round(y), p: e.pressure, t: e.pointerType }; if (tool === 'eraser') { const removed = eraseAt(x, y); @@ -269,7 +265,6 @@ function onPointerMove(e: PointerEvent) { if (e.pointerId !== activePointerId) return; const [x, y] = getLocalXY(e); - lastDebug = { x: Math.round(x), y: Math.round(y), p: e.pressure, t: e.pointerType }; if (tool === 'eraser') { const removed = eraseAt(x, y); @@ -512,12 +507,5 @@ style="touch-action: none; cursor: {tool === 'eraser' ? 'cell' : 'crosshair'};" > - -
- {cssWidth}×{cssHeight} - {#if lastDebug} - · {lastDebug.t} ({lastDebug.x},{lastDebug.y}) p={lastDebug.p.toFixed(2)} - {/if} -