Canvas: Improve changing element options UX (#49555)

This commit is contained in:
Nathan Marrs
2022-05-25 10:21:51 -07:00
committed by GitHub
parent caa49f8d14
commit 2449f62dbe
3 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ export class FrameState extends ElementState {
reinitializeMoveable() {
// Need to first clear current selection and then re-init moveable with slight delay
this.scene.clearCurrentSelection();
setTimeout(() => this.scene.initMoveable(true, this.scene.isEditingEnabled), 100);
setTimeout(() => this.scene.initMoveable(true, this.scene.isEditingEnabled));
}
// ??? or should this be on the element directly?
+2 -2
View File
@@ -106,7 +106,7 @@ export class Scene {
this.currentLayer = this.root;
this.selection.next([]);
}
}, 100);
});
return this.root;
}
@@ -226,7 +226,7 @@ export class Scene {
if (this.div) {
this.initMoveable(true, this.isEditingEnabled);
}
}, 100);
});
}
};