Fix dragging a node to another node

This commit is contained in:
John Firebaugh
2013-04-26 12:28:25 -07:00
parent 0a293c3ae9
commit 3bdaab0bb3

View File

@@ -121,8 +121,9 @@ iD.modes.DragNode = function(context) {
connectAnnotation(d));
} else if (d.type === 'node' && d.id !== entity.id) {
// `entity` is last so it will survive and it's parent ways can be selected below.
context.replace(
iD.actions.Connect([entity.id, d.id]),
iD.actions.Connect([d.id, entity.id]),
connectAnnotation(d));
} else if (wasMidpoint) {