diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index b45958ae..4c9d7804 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -2887,9 +2887,6 @@ const dblClick = function (evt) { const evtTarget = evt.target; const parent = evtTarget.parentNode; - // Do nothing if already in current group - if (parent === currentGroup) { return; } - let mouseTarget = getMouseTarget(evt); const {tagName} = mouseTarget; @@ -2898,6 +2895,9 @@ const dblClick = function (evt) { textActions.select(mouseTarget, pt.x, pt.y); } + // Do nothing if already in current group + if (parent === currentGroup) { return; } + if ((tagName === 'g' || tagName === 'a') && getRotationAngle(mouseTarget) ) {