From eb31cc04aabf759a0be14471f875e6ddae3bd2cd Mon Sep 17 00:00:00 2001 From: ranyunlong <549510622@qq.com> Date: Sat, 6 Apr 2024 23:50:18 +0800 Subject: [PATCH] Update Transformer.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If Transformer is moved to the top, it will block event capture,Setting the listening of the ”back“ to false can avoid this issue --- src/shapes/Transformer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shapes/Transformer.ts b/src/shapes/Transformer.ts index 6cec4a83..bb5b977c 100644 --- a/src/shapes/Transformer.ts +++ b/src/shapes/Transformer.ts @@ -615,6 +615,7 @@ export class Transformer extends Group { width: 0, height: 0, draggable: true, + listening: false, sceneFunc(ctx, shape) { var tr = shape.getParent() as Transformer; var padding = tr.padding();