Skip to content

Commit

Permalink
feat(front): Destroy smart rectangle once smart mask is created (pixa…
Browse files Browse the repository at this point in the history
  • Loading branch information
timothee-LJN authored Feb 1, 2024
1 parent 18f970c commit 0cbf1aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/components/canvas2d/src/Canvas2D.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,9 @@
viewLayer.off("pointermove");
viewLayer.off("pointerup");
}
if (selectedTool.isSmart) {
rect.destroy();
}
}
}
Expand Down

0 comments on commit 0cbf1aa

Please sign in to comment.