Skip to content

Commit 6e8b405

Browse files
committed
1 parent a8d7619 commit 6e8b405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/project-editor/flow/flow-tab-state.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export abstract class FlowTabState implements IEditorState {
6868
transform = this.transform;
6969
}
7070
transform.translate = {
71-
x: -this.flow.pageRect.width / 2,
72-
y: -this.flow.pageRect.height / 2
71+
x: -(this.flow.pageRect.width * transform.scale) / 2,
72+
y: -(this.flow.pageRect.height * transform.scale) / 2
7373
};
7474
}
7575

0 commit comments

Comments
 (0)