fix: floor gate ring radius for tiny canvases (review)
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user