Skip to content

Commit

Permalink
Don't snap notes to OSM elements
Browse files Browse the repository at this point in the history
(closes #5191)
  • Loading branch information
bhousel committed Nov 12, 2018
1 parent 7d1710d commit 2ffcec9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/behavior/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export function behaviorDraw(context) {
// related code
// - `mode/drag_node.js` `datum()`
function datum() {
if (d3_event.altKey) return {};
var mode = context.mode();
var isNote = mode && (mode.id.indexOf('note') !== -1);
if (d3_event.altKey || isNote) return {};

var element;
if (d3_event.type === 'keydown') {
Expand Down

0 comments on commit 2ffcec9

Please sign in to comment.