JFH 2020-06-19 18:42:48 +02:00
parent 102541b7f4
commit 033fd30955
1 changed files with 3 additions and 3 deletions

View File

@ -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)
) {