Skip to content

Commit 26f95d6

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(ui): disable move tool when staging
1 parent 40f7b0d commit 26f95d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityTransformer.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,13 @@ export class CanvasEntityTransformer extends CanvasModuleBase {
599599
syncInteractionState = () => {
600600
this.log.trace('Syncing interaction state');
601601

602+
if (this.manager.stagingArea.$isStaging.get()) {
603+
// While staging, the layer should not be interactable
604+
this.parent.konva.layer.listening(false);
605+
this._setInteractionMode('off');
606+
return;
607+
}
608+
602609
if (this.parent.segmentAnything?.$isSegmenting.get()) {
603610
// When segmenting, the layer should listen but the transformer should not be interactable
604611
this.parent.konva.layer.listening(true);

0 commit comments

Comments
 (0)