fix: move binded text when moving container using keyboard (#4466)

This commit is contained in:
Aakansha Doshi 2021-12-23 01:47:14 +05:30 committed by GitHub
parent 64c2d76cfa
commit d0733b1960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1679,9 +1679,11 @@ class App extends React.Component<AppProps, AppState> {
? ELEMENT_SHIFT_TRANSLATE_AMOUNT ? ELEMENT_SHIFT_TRANSLATE_AMOUNT
: ELEMENT_TRANSLATE_AMOUNT); : ELEMENT_TRANSLATE_AMOUNT);
const selectedElements = this.scene const selectedElements = getSelectedElements(
.getElements() this.scene.getElements(),
.filter((element) => this.state.selectedElementIds[element.id]); this.state,
true,
);
let offsetX = 0; let offsetX = 0;
let offsetY = 0; let offsetY = 0;