From a32749c14a16caf673a17d2ae34f986737b48c6a Mon Sep 17 00:00:00 2001 From: EugeneTes Date: Fri, 12 Jun 2026 15:16:59 +0000 Subject: [PATCH] fix: floor gate ring radius for tiny canvases (review) --- src/render/systemView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/systemView.js b/src/render/systemView.js index 68b7f62..7569296 100644 --- a/src/render/systemView.js +++ b/src/render/systemView.js @@ -39,7 +39,7 @@ export class SystemView { const ang = Math.atan2(there.y - here.y, there.x - here.x); const c = this.center(); // Keep gates on-screen on small canvases (review: fixed 290 clipped hit targets). - const r = Math.min(GATE_RADIUS, Math.min(c.x, c.y) - 40); + const r = Math.max(60, Math.min(GATE_RADIUS, Math.min(c.x, c.y) - 40)); return { x: c.x + Math.cos(ang) * r, y: c.y + Math.sin(ang) * r, ang }; }