Update Transformer.ts

If Transformer is moved to the top, it will block event capture,Setting the listening of the ”back“ to false can avoid this issue
This commit is contained in:
ranyunlong
2024-04-06 23:50:18 +08:00
committed by GitHub
parent 6d34326084
commit eb31cc04aa

View File

@@ -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();