Merge pull request #501 from ErrorProne/master

Forgot to prevent the default action on Path-right click
This commit is contained in:
Vladimir Agafonkin 2012-02-16 07:56:18 -08:00
commit b76cba10e2

View File

@ -84,6 +84,11 @@ L.Path = L.Path.extend({
if (this._map.dragging && this._map.dragging.moved()) {
return;
}
if (e.type === 'contextmenu') {
L.DomEvent.preventDefault(e);
}
this._fireMouseEvent(e);
},