From d101411ebb9e60917c44b526a1c00ba6a7385b1b Mon Sep 17 00:00:00 2001 From: xudan Date: Wed, 2 Jul 2025 10:38:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B3=A8=E9=87=8A=E6=8E=89=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E7=BC=A9=E6=94=BE=E5=8A=9F=E8=83=BD=E7=9A=84?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81=EF=BC=8C=E4=BB=A5=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E4=B8=8Exd=E7=9A=84=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/editor.service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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字符串