fix(stage): 拖动出现left -1

This commit is contained in:
roymondchen 2023-08-10 15:02:17 +08:00
parent d8a2a1f805
commit e3b2594c57

View File

@ -134,9 +134,8 @@ export default class MoveableOptionsManager extends EventEmitter {
elementGuidelines: this.elementGuidelines,
bounds: {
top: 0,
// 设置0的话无法移动到left为0所以只能设置为-1
left: -1,
right: this.container.clientWidth - 1,
left: 0,
right: this.container.clientWidth,
bottom: isSortable ? undefined : this.container.clientHeight,
},
};