mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
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.
This commit is contained in:
@@ -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'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user