aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
authormatthew <matthew>2007-02-17 17:23:07 +0000
committermatthew <matthew>2007-02-17 17:23:07 +0000
commitcda73669cef29e310292811feeee766936a5afb8 (patch)
treeef734b2ebf9e9651218f7b0ece3f3186203902b6 /web/js.js
parentcdf1e41d05f0f1422622e53cb2f9cd8e9560ee07 (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.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/js.js b/web/js.js
index 0cffd6ed4..860da3323 100644
--- a/web/js.js
+++ b/web/js.js
@@ -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);
});