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.historyIndex = undefined;
|
||||||
this.store.histories = [];
|
this.store.histories = [];
|
||||||
// this.scale(scale);与xd 自定义缩放冲突,暂时去掉
|
// this.scale(scale);与xd 自定义缩放冲突,暂时去掉
|
||||||
if (isEmpty(origin)) {
|
// if (isEmpty(origin)) {
|
||||||
this.centerView();
|
// this.centerView();
|
||||||
} else {
|
// } else {
|
||||||
this.translate(origin.x / scale, origin.y / scale);
|
// this.translate(origin.x / scale, origin.y / scale);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 保存当前场景为JSON字符串
|
* 保存当前场景为JSON字符串
|
||||||
|
Loading…
x
Reference in New Issue
Block a user