kill the double-click event after we have dealt with it

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1248 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-08-16 17:34:39 +00:00
parent 7da2079736
commit f98ac685d1

View File

@@ -59,6 +59,7 @@ OpenLayers.Control.MouseDefaults.prototype =
defaultDblClick: function (evt) {
var newCenter = this.map.getLonLatFromViewPortPx( evt.xy );
this.map.setCenter(newCenter, this.map.zoom + 1);
Event.stop(evt);
},
/**