mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-08 04:11:23 +00:00
Fix dragging a node to another node
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user