From 06b32c30a727e283cf0be20c587071115ac39cfe Mon Sep 17 00:00:00 2001 From: pgiraud Date: Mon, 3 Jan 2011 15:48:37 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Handler/Box.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Handler/Box.js b/lib/OpenLayers/Handler/Box.js index bc04626d88..c530941ad9 100644 --- a/lib/OpenLayers/Handler/Box.js +++ b/lib/OpenLayers/Handler/Box.js @@ -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);