fix(ui): disable move tool when staging

This commit is contained in:
psychedelicious
2024-11-01 09:24:15 +10:00
committed by Kent Keirsey
parent 40f7b0d171
commit 26f95d6a97

View File

@@ -599,6 +599,13 @@ export class CanvasEntityTransformer extends CanvasModuleBase {
syncInteractionState = () => {
this.log.trace('Syncing interaction state');
if (this.manager.stagingArea.$isStaging.get()) {
// While staging, the layer should not be interactable
this.parent.konva.layer.listening(false);
this._setInteractionMode('off');
return;
}
if (this.parent.segmentAnything?.$isSegmenting.get()) {
// When segmenting, the layer should listen but the transformer should not be interactable
this.parent.konva.layer.listening(true);