feat(stage): moveable origin改为false

This commit is contained in:
roymondchen 2022-03-31 17:04:40 +08:00 committed by khuntoriia
parent 7e216e72f2
commit fb64e078b9
2 changed files with 2 additions and 9 deletions

View File

@ -358,7 +358,7 @@ export default class StageDragResize extends EventEmitter {
} }
return { return {
origin: true, origin: false,
rootContainer: this.core.container, rootContainer: this.core.container,
zoom: 1, zoom: 1,
dragArea: false, dragArea: false,

View File

@ -47,14 +47,7 @@ export default class StageHighlight extends EventEmitter {
this.moveable = new Moveable(this.container, { this.moveable = new Moveable(this.container, {
target: this.target, target: this.target,
scrollable: true, scrollable: true,
origin: true, origin: false,
zoom: 1,
bounds: {
top: 0,
left: 0,
right: this.container.clientWidth,
bottom: this.container.clientHeight,
},
}); });
} }