stop marker doubleclick propagation

This commit is contained in:
Mourner 2011-01-11 15:45:28 +02:00
parent 0f97a75048
commit 8e6f2780cd

View File

@ -8,6 +8,7 @@ L.Marker = L.Class.extend({
initialize: function(latlng, options) {
this._latlng = latlng;
//TODO override default options
},
onAdd: function(map) {
@ -55,6 +56,7 @@ L.Marker = L.Class.extend({
this._icon.className += ' leaflet-clickable';
L.DomEvent.addListener(this._icon, 'mousedown', this._fireMouseEvent, this);
L.DomEvent.addListener(this._icon, 'click', this._fireMouseEvent, this);
L.DomEvent.addListener(this._icon, 'dblclick', this._fireMouseEvent, this);
}
},