From 0a8e8e1ea8e269e219240ec8ff84e521be161aa6 Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 30 Jun 2026 17:59:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=BA=94=EB=B2=84=EC=8A=A4=20=ED=99=95?= =?UTF-8?q?=EB=8C=80=20=ED=81=B4=EB=A6=AD=20=ED=95=B8=EB=93=A4=EB=9F=AC=20?= =?UTF-8?q?=E2=80=94=20DOMContentLoaded=20=EC=A0=9C=EA=B1=B0=20(=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=20=EB=B0=9C=ED=99=94=20=ED=9B=84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- web-ui/arduino-emulator.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/web-ui/arduino-emulator.html b/web-ui/arduino-emulator.html index 6ab8da9..e46344f 100644 --- a/web-ui/arduino-emulator.html +++ b/web-ui/arduino-emulator.html @@ -7945,12 +7945,10 @@ function mobToggleBoard(){ overlay.addEventListener('click', closeZoom); document.addEventListener('keydown', e => { if (e.key === 'Escape') closeZoom(); }); - // TFT / OLED 캔버스에 클릭 핸들러 연결 (DOM 준비 후) - document.addEventListener('DOMContentLoaded', () => { - ['tft-canvas', 'oled-canvas'].forEach(id => { - const c = document.getElementById(id); - if (c) c.addEventListener('click', () => openZoom(c)); - }); + // body 끝에서 실행되므로 DOM 이미 준비됨 — 직접 연결 + ['tft-canvas', 'oled-canvas'].forEach(id => { + const c = document.getElementById(id); + if (c) c.addEventListener('click', () => openZoom(c)); }); // canvas가 나중에 그려질 수 있으므로 전역 노출