fix: floor gate ring radius for tiny canvases (review)

This commit is contained in:
2026-06-12 15:16:59 +00:00
parent 7726651c69
commit a32749c14a
+1 -1
View File
@@ -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 };
}