Merge pull request #501 from ErrorProne/master
Forgot to prevent the default action on Path-right click
This commit is contained in:
commit
b76cba10e2
@ -84,6 +84,11 @@ L.Path = L.Path.extend({
|
|||||||
if (this._map.dragging && this._map.dragging.moved()) {
|
if (this._map.dragging && this._map.dragging.moved()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.type === 'contextmenu') {
|
||||||
|
L.DomEvent.preventDefault(e);
|
||||||
|
}
|
||||||
|
|
||||||
this._fireMouseEvent(e);
|
this._fireMouseEvent(e);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user