diff --git a/src/services/editor.service.ts b/src/services/editor.service.ts index 2101986..c5f2d2d 100644 --- a/src/services/editor.service.ts +++ b/src/services/editor.service.ts @@ -65,11 +65,11 @@ export class EditorService extends Meta2d { this.store.historyIndex = undefined; this.store.histories = []; // this.scale(scale);与xd 自定义缩放冲突,暂时去掉 - if (isEmpty(origin)) { - this.centerView(); - } else { - this.translate(origin.x / scale, origin.y / scale); - } + // if (isEmpty(origin)) { + // this.centerView(); + // } else { + // this.translate(origin.x / scale, origin.y / scale); + // } } /** * 保存当前场景为JSON字符串