From df81cd033ab171381de612842086a2ed41463c9a Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Mon, 27 Apr 2026 10:00:34 +0900 Subject: [PATCH] =?UTF-8?q?fix(study):=20Pencil=20=EB=A7=8C=20=EC=9D=B8?= =?UTF-8?q?=EC=8B=9D=20+=20=EB=8D=94=EB=B8=94=ED=83=AD=20=EC=A4=8C=20?= =?UTF-8?q?=EC=B0=A8=EB=8B=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - isPenLike: 'touch' 제거. pen/mouse 만 허용 → 손가락 stroke/지우개 차단 - 페이지/툴바 영역에 touch-action: manipulation → 버튼 빠른 두 번 탭 시 iOS Safari 더블탭 줌 차단. 지우개/펜 토글 시 화면 확대되던 현상 fix. --- frontend/src/lib/components/HandwriteCanvas.svelte | 13 ++++++------- frontend/src/routes/study/write/[id]/+page.svelte | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/frontend/src/lib/components/HandwriteCanvas.svelte b/frontend/src/lib/components/HandwriteCanvas.svelte index 0698719..72dc9e9 100644 --- a/frontend/src/lib/components/HandwriteCanvas.svelte +++ b/frontend/src/lib/components/HandwriteCanvas.svelte @@ -181,10 +181,9 @@ } function isPenLike(e: PointerEvent): boolean { - // pen / mouse / touch 모두 stroke 허용. iPad Apple Pencil 이 'pen' 으로 안 들어오는 - // 케이스 보고됨 (브라우저/OS 버전에 따라). 우선 입력 가능성을 넓히고, palm rejection 은 - // Phase 2 에서 동시 다중 pointer 거부 등 다른 방식으로 처리. - return e.pointerType === 'pen' || e.pointerType === 'mouse' || e.pointerType === 'touch'; + // 사용자 요청: Apple Pencil ('pen') 만 인식. 손가락 ('touch') 거부 — palm rejection. + // 데스크톱 테스트용 'mouse' 는 허용. + return e.pointerType === 'pen' || e.pointerType === 'mouse'; } // ── 지우개 hit-test ── @@ -412,9 +411,9 @@ }); -
- -
+
+ +