Add additional check to prevent snapping to area fills (fixes #1887)

This commit is contained in:
John Firebaugh
2013-10-14 15:52:32 -04:00
parent 8f0fc433c4
commit 7e94473e23
+1 -1
View File
@@ -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;
}