Skip to content

Commit

Permalink
Prevent to add a vertex on right click
Browse files Browse the repository at this point in the history
closes #157
  • Loading branch information
yohanboniface committed Sep 5, 2018
1 parent aaedf06 commit e3a24e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Leaflet.Editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
},

onMousedown: function (e) {
if (e.originalEvent.which != 1) return;
this._mouseDown = e;
this._drawingEditor.onDrawingMouseDown(e);
},
Expand Down

0 comments on commit e3a24e8

Please sign in to comment.