[OpenLayers-Commits] r10996 - trunk/openlayers/lib/OpenLayers/Handler

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Jan 3 10:48:37 EST 2011


Author: pgiraud
Date: 2011-01-03 07:48:37 -0800 (Mon, 03 Jan 2011)
New Revision: 10996

Modified:
   trunk/openlayers/lib/OpenLayers/Handler/Box.js
Log:
Prevent Box handler from cancelling the click event by displaying the box only when the cursor move, p=me, r=elemoine (Closes #2993)

Modified: trunk/openlayers/lib/OpenLayers/Handler/Box.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/Box.js	2011-01-03 15:39:40 UTC (rev 10995)
+++ trunk/openlayers/lib/OpenLayers/Handler/Box.js	2011-01-03 15:48:37 UTC (rev 10996)
@@ -90,7 +90,7 @@
     */
     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);



More information about the Commits mailing list