File tree 1 file changed +9
-9
lines changed
front-end/h5/src/components/core/editor/canvas
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,10 @@ export default {
81
81
let offset = referX - eX
82
82
if ( Math . abs ( offset ) <= 5 ) {
83
83
if ( isPointMove ) {
84
- // issue #360
85
- if ( hasL ) {
86
- this . setElementPosition ( { width : commonStyle . width - offset , left :eleft + offset } )
87
- } else if ( hasR ) {
84
+ // issue #360
85
+ if ( hasL ) {
86
+ this . setElementPosition ( { width : commonStyle . width - offset , left : eleft + offset } )
87
+ } else if ( hasR ) {
88
88
this . setElementPosition ( { width : commonStyle . width + offset } )
89
89
}
90
90
} else {
@@ -100,10 +100,10 @@ export default {
100
100
let offset = referY - eY
101
101
if ( Math . abs ( offset ) <= 5 ) {
102
102
if ( isPointMove ) {
103
- // issue #360
104
- if ( hasT ) {
105
- this . setElementPosition ( { height : eheight - offset , top :offset + commonStyle . top } )
106
- } else if ( hasB ) {
103
+ // issue #360
104
+ if ( hasT ) {
105
+ this . setElementPosition ( { height : eheight - offset , top : offset + commonStyle . top } )
106
+ } else if ( hasB ) {
107
107
this . setElementPosition ( { height : eheight + offset } )
108
108
}
109
109
} else {
@@ -128,7 +128,7 @@ export default {
128
128
this . setElementPosition ( pos )
129
129
this . calcVHLine ( )
130
130
} ,
131
- handlePointMove ( pos , point ) {
131
+ handlePointMove ( pos , point ) {
132
132
this . setElementPosition ( pos )
133
133
this . calcVHLine ( point )
134
134
} ,
You can’t perform that action at this time.
0 commit comments