diff options
author | Anthony Towns <aj@erisian.com.au> | 2010-11-22 05:29:26 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2010-11-22 05:29:26 +1000 |
commit | 902735ffbfdd97672d52b09f17cdcd619193fd05 (patch) | |
tree | 85e3dd6e36a94f7c90728034a36a34eb210ec84b /ao-tools | |
parent | b85df38b5611e45cb9296df07b720badf74ac26e (diff) |
altosui: keep sitemap more centred on rocket
Diffstat (limited to 'ao-tools')
-rw-r--r-- | ao-tools/altosui/AltosSiteMap.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ao-tools/altosui/AltosSiteMap.java b/ao-tools/altosui/AltosSiteMap.java index 2477e4f8..80970605 100644 --- a/ao-tools/altosui/AltosSiteMap.java +++ b/ao-tools/altosui/AltosSiteMap.java @@ -317,7 +317,7 @@ public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay { Point2D.Double copt = translatePoint(pt, tileCoordOffset(topleft)); int dx = (int)copt.x - r.width/2 - r.x; int dy = (int)copt.y - r.height/2 - r.y; - if (Math.abs(dx) > r.width/3 || Math.abs(dy) > r.height/3) { + if (Math.abs(dx) > r.width/4 || Math.abs(dy) > r.height/4) { r.x += dx; r.y += dy; comp.scrollRectToVisible(r); |