Return false from DoubleClick and Click events in controls so that these events don't filter through and hit the onclick handlers that we might register on the map.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@572 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-06-12 02:03:53 +00:00
parent 2f9c7dfbd3
commit b30a4c4f3e
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -53,6 +53,7 @@ OpenLayers.Control.PanZoom.prototype =
btn.onmousedown = this.buttonDown.bindAsEventListener(btn);
btn.ondblclick = this.doubleClick.bindAsEventListener(btn);
btn.onclick = this.doubleClick.bindAsEventListener(btn);
btn.action = id;
btn.map = this.map;
@@ -63,6 +64,7 @@ OpenLayers.Control.PanZoom.prototype =
doubleClick: function (evt) {
Event.stop(evt);
return false;
},
buttonDown: function (evt) {