diff options
author | matthew <matthew> | 2008-04-14 17:10:51 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-04-14 17:10:51 +0000 |
commit | 6c716d81c18a3f2dedb921dd5f874bc8fcaaa9cf (patch) | |
tree | d761f85ca4c21a96feb9064ea60d4f7513e2e760 /web/js.js | |
parent | c965cbaf378f4ba55f3141ada8403e95a4da37af (diff) |
Fix obscure bug with repeated positioning of pin without panning/scrolling
leading to reaching edge of loaded tiles.
Diffstat (limited to 'web/js.js')
-rw-r--r-- | web/js.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |