From cda73669cef29e310292811feeee766936a5afb8 Mon Sep 17 00:00:00 2001 From: matthew Date: Sat, 17 Feb 2007 17:23:07 +0000 Subject: Turn off dragging/panning in Safari as current release has some sort of bug (it's fixed in the latest nightly). --- web/js.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/js.js') 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); }); -- cgit v1.2.3