From 6c716d81c18a3f2dedb921dd5f874bc8fcaaa9cf Mon Sep 17 00:00:00 2001 From: matthew Date: Mon, 14 Apr 2008 17:10:51 +0000 Subject: Fix obscure bug with repeated positioning of pin without panning/scrolling leading to reaching edge of loaded tiles. --- web/js.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/js.js') 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; -- cgit v1.2.3