diff options
author | matthew <matthew> | 2007-02-17 17:23:07 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-02-17 17:23:07 +0000 |
commit | cda73669cef29e310292811feeee766936a5afb8 (patch) | |
tree | ef734b2ebf9e9651218f7b0ece3f3186203902b6 /web/js.js | |
parent | cdf1e41d05f0f1422622e53cb2f9cd8e9560ee07 (diff) |
Turn off dragging/panning in Safari as current release has some sort of bug
(it's fixed in the latest nightly).
Diffstat (limited to 'web/js.js')
-rw-r--r-- | web/js.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -15,6 +15,9 @@ function compass_pan(e, a) { } YAHOO.util.Event.onContentReady('compass', function() { + var ua=navigator.userAgent.toLowerCase(); + if (document.getElementById('mapForm') && /safari/.test(ua)) return; + var points = this.getElementsByTagName('a'); YAHOO.util.Event.addListener(points[1], 'click', compass_pan, { x:0, y:tileheight }); YAHOO.util.Event.addListener(points[3], 'click', compass_pan, { x:tilewidth, y:0 }); @@ -27,6 +30,9 @@ YAHOO.util.Event.onContentReady('compass', function() { }); YAHOO.util.Event.onContentReady('map', function() { + var ua=navigator.userAgent.toLowerCase(); + if (document.getElementById('mapForm') && /safari/.test(ua)) return; + new YAHOO.util.DDMap('map'); update_tiles(0, 0, true); }); |