mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-30 15:38:27 +02:00
Add additional check to prevent snapping to area fills (fixes #1887)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user