diff --git a/ts/routes/image-occlusion/mask-editor.ts b/ts/routes/image-occlusion/mask-editor.ts index b632abf98..6d4d0d284 100644 --- a/ts/routes/image-occlusion/mask-editor.ts +++ b/ts/routes/image-occlusion/mask-editor.ts @@ -109,6 +109,8 @@ function initCanvas(): fabric.Canvas { // snap rotation around 0 by +-3deg fabric.Object.prototype.snapAngle = 360; fabric.Object.prototype.snapThreshold = 3; + // populate canvas.targets with subtargets during mouse events + fabric.Group.prototype.subTargetCheck = true; // disable rotation when selecting canvas.on("selection:created", () => { const g = canvas.getActiveObject();