[Commits] r568 - apps/opengeo/geoexplorer/trunk/lib

commits at geoext.org commits at geoext.org
Fri May 1 16:34:41 CEST 2009


Author: sbenthall
Date: 2009-05-01 16:34:41 +0200 (Fri, 01 May 2009)
New Revision: 568

Modified:
   apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
stopping double click events on the PanPanel in GeoExplorer.js until OpenLayers2069 is closed


Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-05-01 01:23:10 UTC (rev 567)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-05-01 14:34:41 UTC (rev 568)
@@ -128,6 +128,17 @@
                        new OpenLayers.Control.ZoomPanel()]
         });
 
+        //** Remove this code when OpenLayers #2069 is closed **
+        var onDoubleClick = function(ctrl, evt) { 
+ 	        OpenLayers.Event.stop(evt ? evt : window.event); 
+        };
+        var controls = this.map.controls[0].controls;
+        for(var i = 0; i < controls.length; i++){
+            OpenLayers.Event.observe(controls[i].panel_div, "dblclick",  
+ 	                             OpenLayers.Function.bind(onDoubleClick, this.map.controls[0], controls[i])); 
+        }        
+        //******************************************************
+
         //TODO: make this more configurable
         this.map.events.on({
             "preaddlayer" : function(evt){



More information about the Commits mailing list