From 082e679672bd5896f9693496ac764f02bd45583d Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sun, 23 Aug 2026 18:26:24 +0900 Subject: [PATCH] =?UTF-8?q?fix(B06):=20+=20=EB=B2=84=ED=8A=BC=EC=9D=B4=20?= =?UTF-8?q?=EB=B0=B0=EC=9C=A8=20=ED=99=95=EB=8C=80=EB=A5=BC=20=EB=AA=BB=20?= =?UTF-8?q?=ED=95=98=EB=8D=98=20=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 원배율에서 +를 표시 반폭 좁히기로 돌려놨더니 배율이 1에서 올라가지 않았고, 가운데 버튼 팬은 배율>1에서만 열리므로 팬도 함께 막혔다(2026-08-23 사용자 보고). +는 언제나 배율 확대, −만 원배율에서 표시 반폭 +1m로 되돌린다. Co-Authored-By: Claude Opus 5 (1M context) --- B06_Section/B06_Section_UI_Cross_View_Zoom.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/B06_Section/B06_Section_UI_Cross_View_Zoom.ts b/B06_Section/B06_Section_UI_Cross_View_Zoom.ts index ec140ebf..ad1da03a 100644 --- a/B06_Section/B06_Section_UI_Cross_View_Zoom.ts +++ b/B06_Section/B06_Section_UI_Cross_View_Zoom.ts @@ -192,8 +192,8 @@ export function attachZoomPan( * 그래프 우측 상단 줌 버튼(확대/축소/핏). 휠을 대신하는 조작구다. * * `width`를 넘기면 **원배율에서만** 버튼이 표시 반폭을 조절한다(2026-08-23 사용자 지시): - * − : 배율>1이면 축소, 원배율이면 반폭 +1m(계산 반폭 20m를 넘으면 백엔드 재계산) - * + : 배율>1이면 확대, 원배율이면 반폭 −1m + * + : 배율 확대(항상) + * − : 배율>1이면 축소, 원배율이면 표시 반폭 +1m(계산 반폭 20m를 넘으면 백엔드 재계산) * ⤢ : 배율 원복 + 절·성토 교차점이 다 보이는 폭으로 맞춤 */ export function buildZoomControls(handle: ZoomPanHandle, width?: CrossWidthActions): HTMLElement { @@ -212,10 +212,9 @@ export function buildZoomControls(handle: ZoomPanHandle, width?: CrossWidthActio }); bar.append(button); }; - add("+", L("B06_Profile_View_ZoomIn"), () => { - if (!width || handle.scale() > 1 + 1e-6) handle.zoom(1 / 0.85); - else width.step(-1); - }); + // +는 언제나 배율 확대다 — 원배율에서 폭 좁히기로 바꿔 놨더니 배율이 1에서 못 올라가 + // 가운데 버튼 팬(배율>1에서만 열림)까지 막혔다(2026-08-23 사용자 보고). + add("+", L("B06_Profile_View_ZoomIn"), () => handle.zoom(1 / 0.85)); add("−", L("B06_Profile_View_ZoomOut"), () => { if (!width || handle.scale() > 1 + 1e-6) handle.zoom(0.85); else width.step(1);