diff --git a/B06_wf3_ProfileCross/B06_wf3_ProfileCross_UI_Cross_View.ts b/B06_wf3_ProfileCross/B06_wf3_ProfileCross_UI_Cross_View.ts index 834665005..badc0a0c5 100644 --- a/B06_wf3_ProfileCross/B06_wf3_ProfileCross_UI_Cross_View.ts +++ b/B06_wf3_ProfileCross/B06_wf3_ProfileCross_UI_Cross_View.ts @@ -141,7 +141,8 @@ function attachZoomPan(svg: SVGSVGElement, widthPx: number, heightPx: number): v const rect = svg.getBoundingClientRect(); const mx = vb.x + ((event.clientX - rect.left) / rect.width) * vb.w; const my = vb.y + ((event.clientY - rect.top) / rect.height) * vb.h; - const factor = event.deltaY < 0 ? 0.85 : 1 / 0.85; + // 휠을 **당기면 확대**, 밀면 축소한다 — B04·B05 2D 지도와 같은 방향(2026-08-02 사용자 지시). + const factor = event.deltaY > 0 ? 0.85 : 1 / 0.85; const nw = Math.min(base.w, Math.max(base.w / 8, vb.w * factor)); const nh = Math.min(base.h, Math.max(base.h / 8, vb.h * factor)); vb.x = mx - (mx - vb.x) * (nw / vb.w);