From 7584d12ae551fcf4cdef04f7b3bcb350cd7d0e6c Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 22 Jun 2006 18:53:36 +0000 Subject: [PATCH] Turn off selecting in IE, so we don't end up selecting tiles while dragging a box. git-svn-id: http://svn.openlayers.org/trunk/openlayers@680 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/MouseDefaults.js | 2 ++ lib/OpenLayers/Control/MouseToolbar.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/OpenLayers/Control/MouseDefaults.js b/lib/OpenLayers/Control/MouseDefaults.js index e7dc1d61cc..9ce026342c 100644 --- a/lib/OpenLayers/Control/MouseDefaults.js +++ b/lib/OpenLayers/Control/MouseDefaults.js @@ -55,6 +55,7 @@ OpenLayers.Control.MouseDefaults.prototype = this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); } + document.onselectstart=function() { return false; } Event.stop(evt); }, @@ -111,6 +112,7 @@ OpenLayers.Control.MouseDefaults.prototype = } else { this.map.setCenter(this.map.center); } + document.onselectstart=null; this.mouseDragStart = null; this.map.div.style.cursor = "default"; }, diff --git a/lib/OpenLayers/Control/MouseToolbar.js b/lib/OpenLayers/Control/MouseToolbar.js index 056e56868f..e0afdd527b 100644 --- a/lib/OpenLayers/Control/MouseToolbar.js +++ b/lib/OpenLayers/Control/MouseToolbar.js @@ -164,6 +164,7 @@ OpenLayers.Control.MouseToolbar.prototype = this.map.div.style.cursor = "move"; break; } + document.onselectstart = function() { return false; } Event.stop(evt); }, @@ -247,6 +248,7 @@ OpenLayers.Control.MouseToolbar.prototype = this.map.setCenter(this.map.center); } + document.onselectstart = null; this.mouseDragStart = null; this.map.div.style.cursor = "default"; },