fix(editor): 拖动组件到最右边会多出1px

This commit is contained in:
roymondchen 2022-07-26 15:17:53 +08:00 committed by jia000
parent 9747e0f516
commit bf95925878

View File

@ -558,7 +558,7 @@ export default class StageDragResize extends EventEmitter {
top: 0,
// 设置0的话无法移动到left为0所以只能设置为-1
left: -1,
right: this.container.clientWidth,
right: this.container.clientWidth - 1,
bottom: this.container.clientHeight,
...(moveableOptions.bounds || {}),
},