Prevent Box handler from cancelling the click event by displaying the box only when the cursor move, p=me, r=elemoine (Closes #2993)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10996 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
pgiraud
2011-01-03 15:48:37 +00:00
parent ad54169479
commit 06b32c30a7

View File

@@ -90,7 +90,7 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
*/
startBox: function (xy) {
this.zoomBox = OpenLayers.Util.createDiv('zoomBox',
this.dragHandler.start);
new OpenLayers.Pixel(-9999, -9999));
this.zoomBox.className = this.boxDivClassName;
this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1;
this.map.viewPortDiv.appendChild(this.zoomBox);