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:
@@ -55,6 +55,7 @@ OpenLayers.Control.MouseDefaults.prototype =
|
|||||||
this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1;
|
this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1;
|
||||||
this.map.viewPortDiv.appendChild(this.zoomBox);
|
this.map.viewPortDiv.appendChild(this.zoomBox);
|
||||||
}
|
}
|
||||||
|
document.onselectstart=function() { return false; }
|
||||||
Event.stop(evt);
|
Event.stop(evt);
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -111,6 +112,7 @@ OpenLayers.Control.MouseDefaults.prototype =
|
|||||||
} else {
|
} else {
|
||||||
this.map.setCenter(this.map.center);
|
this.map.setCenter(this.map.center);
|
||||||
}
|
}
|
||||||
|
document.onselectstart=null;
|
||||||
this.mouseDragStart = null;
|
this.mouseDragStart = null;
|
||||||
this.map.div.style.cursor = "default";
|
this.map.div.style.cursor = "default";
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -164,6 +164,7 @@ OpenLayers.Control.MouseToolbar.prototype =
|
|||||||
this.map.div.style.cursor = "move";
|
this.map.div.style.cursor = "move";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
document.onselectstart = function() { return false; }
|
||||||
Event.stop(evt);
|
Event.stop(evt);
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -247,6 +248,7 @@ OpenLayers.Control.MouseToolbar.prototype =
|
|||||||
this.map.setCenter(this.map.center);
|
this.map.setCenter(this.map.center);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
document.onselectstart = null;
|
||||||
this.mouseDragStart = null;
|
this.mouseDragStart = null;
|
||||||
this.map.div.style.cursor = "default";
|
this.map.div.style.cursor = "default";
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user