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
This commit is contained in:
crschmidt
2006-06-22 18:53:36 +00:00
parent 2dc364f417
commit 7584d12ae5
2 changed files with 4 additions and 0 deletions

View File

@@ -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";
},