Skip to content

Commit c860890

Browse files
HuiFeiYaly525
authored andcommitted
fix:issue #360
1 parent cee3673 commit c860890

File tree

1 file changed

+2
-2
lines changed
  • front-end/h5/src/components/core/editor/canvas

1 file changed

+2
-2
lines changed

front-end/h5/src/components/core/editor/canvas/edit.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export default {
3535
clearHLine () {
3636
this.hLines = []
3737
},
38+
// 传入拖动点的位置,不传默认为 undefined,视为拖动组件本身
3839
calcVHLine (point) {
3940
const isPointMove = Boolean(point)
4041
const uuid = this.editingElement.uuid
@@ -83,7 +84,7 @@ export default {
8384
// issue #360
8485
if(hasL) {
8586
this.setElementPosition({ width: commonStyle.width - offset,left:eleft + offset })
86-
}else if(hasR){ // 向右移动
87+
}else if(hasR){
8788
this.setElementPosition({ width: commonStyle.width + offset })
8889
}
8990
} else {
@@ -129,7 +130,6 @@ export default {
129130
},
130131
handlePointMove (pos,point) {
131132
this.setElementPosition(pos)
132-
// 传如拖动点的位置
133133
this.calcVHLine(point)
134134
},
135135
bindContextMenu (e) {

0 commit comments

Comments
 (0)