From 7e94473e23e789aa757548869742d6a2a3d44272 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 14 Oct 2013 15:52:32 -0400 Subject: [PATCH] Add additional check to prevent snapping to area fills (fixes #1887) --- js/id/modes/drag_node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/modes/drag_node.js b/js/id/modes/drag_node.js index 3eb423753..d70932549 100644 --- a/js/id/modes/drag_node.js +++ b/js/id/modes/drag_node.js @@ -103,7 +103,7 @@ iD.modes.DragNode = function(context) { var d = datum(); if (d.type === 'node' && d.id !== entity.id) { loc = d.loc; - } else if (d.type === 'way') { + } else if (d.type === 'way' && !d3.select(d3.event.sourceEvent.target).classed('fill')) { loc = iD.geo.chooseEdge(context.childNodes(d), context.mouse(), context.projection).loc; }