Skip to content

Commit

Permalink
Make sure mouse events are stopped; fixes #477
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Liedman committed Sep 28, 2018
1 parent d152963 commit db6fd98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
afterIndex: afterIndex,
latlng: e.latlng
});
L.DomEvent.stop(e);
},

_getWaypointIndices: function() {
Expand Down
2 changes: 2 additions & 0 deletions src/plan.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@
if (draggingEnabled) {
this._map.dragging.enable();
}

L.DomEvent.stop(e);
}, this),
i;

Expand Down

0 comments on commit db6fd98

Please sign in to comment.