From 0fb506f461378f7299a8318cb5f93beabe76c2e5 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 16 Jan 2017 20:37:34 +0530 Subject: [PATCH] Make sure new midpoint also gets included in activeIDs --- modules/modes/drag_node.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/modes/drag_node.js b/modules/modes/drag_node.js index 391f9ab0a..a36402908 100644 --- a/modules/modes/drag_node.js +++ b/modules/modes/drag_node.js @@ -97,10 +97,14 @@ export function modeDragNode(context) { var vertex = context.surface().selectAll('.' + entity.id); behavior.target(vertex.node(), entity); + activeIDs = _.map(context.graph().parentWays(entity), 'id'); + activeIDs.push(entity.id); + } else { context.perform(actionNoop()); } + setActiveElements(); context.enter(mode); }