From 919234d2df7aa89cc067c6ec564de339296e0330 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 6 Feb 2017 16:43:54 -0500 Subject: [PATCH] Make sure to select `vertex-persistent` when looking for siblings (closes #3824) When hovering, there is also a companion `vertex-hover` element that might sometimes get selected, and doesn't have the sibling class that enables drag. --- modules/modes/drag_node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/modes/drag_node.js b/modules/modes/drag_node.js index 1d3053d5e..4a99f17ba 100644 --- a/modules/modes/drag_node.js +++ b/modules/modes/drag_node.js @@ -102,7 +102,7 @@ export function modeDragNode(context) { // vertices classed "sibling" include: (see svg/vertices.js) // - children of selected ways or multipolygons // - vertices sharing a way with selected vertices - var selection = d3.selectAll('g.' + entity.id), + var selection = d3.selectAll('g.vertex-persistent.' + entity.id), isSelected = !selection.empty() && (selection.classed('selected') || selection.classed('sibling'));