aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js.js')
-rw-r--r--web/js.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/js.js b/web/js.js
index e59b0bb1a..25a9b6770 100644
--- a/web/js.js
+++ b/web/js.js
@@ -45,7 +45,7 @@ YAHOO.util.Event.onContentReady('map', function() {
if (document.getElementById('mapForm') && (/safari/.test(ua) || /Konqueror/.test(ua))) return;
new YAHOO.util.DDMap('map');
- update_tiles(0, 0, true);
+ update_tiles(start_x, start_y, true);
});
YAHOO.util.Event.onContentReady('mapForm', function() {
@@ -222,6 +222,8 @@ function pan(x, y) {
}
}
+var drag_x = 0;
+var drag_y = 0;
function update_tiles(dx, dy, force) {
dx = getInt(dx); dy = getInt(dy);
if (!dx && !dy && !force) return;