diff --git a/web-ui/arduino-emulator.html b/web-ui/arduino-emulator.html index f1f1585..be335b2 100644 --- a/web-ui/arduino-emulator.html +++ b/web-ui/arduino-emulator.html @@ -7949,11 +7949,10 @@ function mobToggleBoard(){ function openZoom(canvas) { _src = canvas; // 화면의 90% 이내에서 최대 정수 배율 - const maxScale = Math.min( - Math.floor(window.innerWidth * 0.9 / canvas.width), - Math.floor(window.innerHeight * 0.9 / canvas.height) + const scale = Math.min(1.5, + window.innerWidth * 0.9 / canvas.width, + window.innerHeight * 0.9 / canvas.height ); - const scale = Math.max(1, maxScale); zoomCanvas.width = canvas.width * scale; zoomCanvas.height = canvas.height * scale; overlay.classList.add('open');