fix bug with selection
parent
460889688c
commit
0f6128b71b
|
@ -155,16 +155,14 @@ export const getMouseTargetMethod = function (evt) {
|
||||||
return selectionContext_.getSVGRoot();
|
return selectionContext_.getSVGRoot();
|
||||||
}
|
}
|
||||||
|
|
||||||
const $target = mouseTarget;
|
|
||||||
|
|
||||||
// If it's a selection grip, return the grip parent
|
// If it's a selection grip, return the grip parent
|
||||||
if (getClosest($target.parentNode, '#selectorParentGroup')) {
|
if (getClosest(mouseTarget.parentNode, '#selectorParentGroup')) {
|
||||||
// While we could instead have just returned mouseTarget,
|
// While we could instead have just returned mouseTarget,
|
||||||
// this makes it easier to indentify as being a selector grip
|
// this makes it easier to indentify as being a selector grip
|
||||||
return selectionContext_.getCanvas().selectorManager.selectorParentGroup;
|
return selectionContext_.getCanvas().selectorManager.selectorParentGroup;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (mouseTarget.parentNode !== (selectionContext_.getCurrentGroup() || currentLayer)) {
|
while (!mouseTarget.parentNode.isSameNode(selectionContext_.getCurrentGroup() || currentLayer)) {
|
||||||
mouseTarget = mouseTarget.parentNode;
|
mouseTarget = mouseTarget.parentNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue