fix: 注释掉自定义缩放功能的相关代码,以避免与xd的冲突
This commit is contained in:
parent
be75a56eb5
commit
d101411ebb
@ -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字符串
|
||||
|
Loading…
x
Reference in New Issue
Block a user