Fix for #554, click event and PanZoom control conflict, which was caused by
#484 in 2.3. This fixes the 2.2 -> current regression. Should be pulled up to the 2.4 branch. git-svn-id: http://svn.openlayers.org/trunk/openlayers@3033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -104,6 +104,8 @@ OpenLayers.Control.PanZoom.prototype =
|
||||
this.doubleClick.bindAsEventListener(btn));
|
||||
OpenLayers.Event.observe(btn, "dblclick",
|
||||
this.doubleClick.bindAsEventListener(btn));
|
||||
OpenLayers.Event.observe(btn, "click",
|
||||
this.doubleClick.bindAsEventListener(btn));
|
||||
btn.action = id;
|
||||
btn.map = this.map;
|
||||
btn.slideFactor = this.slideFactor;
|
||||
|
||||
Reference in New Issue
Block a user