Skip to content

Commit

Permalink
add check for the previous mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Guch1g0v committed Dec 20, 2024
1 parent a63f791 commit 1f5bd06
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ export class FlexMode extends BaseMode {
command.merge(editor.drawingEntitiesManager.recalculateCanvasMatrix());

editor.renderersContainer.update(modelChanges);
editor.scrollToTopLeftCorner();

if (this.previousMode === 'sequence-layout-mode') {
editor.scrollToTopLeftCorner();
}

return command;
}

Expand Down

0 comments on commit 1f5bd06

Please sign in to comment.