From b660cb004923b8eda57bf737877142bf9c17094d Mon Sep 17 00:00:00 2001 From: funny bot Date: Wed, 4 Feb 2026 18:09:19 -0800 Subject: [PATCH] Add path cursor fix --- engine/src/tools/PathCursor.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/src/tools/PathCursor.js b/engine/src/tools/PathCursor.js index 3d5b28492..ae0115a32 100644 --- a/engine/src/tools/PathCursor.js +++ b/engine/src/tools/PathCursor.js @@ -270,7 +270,12 @@ Wick.Tools.PathCursor = class extends Wick.Tool { if(!newHitResult) newHitResult = new this.paper.HitResult(); if (this.detailedEditing !== null) { - if (this._getWickUUID(newHitResult.item) !== this._getWickUUID(this.detailedEditing)) { + // Bugfix: newHitResult.item might be inside a CompoundPath + var targetItem = newHitResult.item; + if (targetItem && targetItem.parent.className === 'CompoundPath') { + targetItem = targetItem.parent; + } + if (this._getWickUUID(targetItem) !== this._getWickUUID(this.detailedEditing)) { // Hits an item, but not the one currently in detail edit - handle as a click with no hit. return new this.paper.HitResult(); }