do not move in preview
This commit is contained in:
@@ -691,6 +691,10 @@ export default {
|
|||||||
this.$emit('start-drag')
|
this.$emit('start-drag')
|
||||||
},
|
},
|
||||||
touchDrag (e) {
|
touchDrag (e) {
|
||||||
|
if (!this.editable) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
const page = this.$parent.$refs.mask.previousSibling
|
const page = this.$parent.$refs.mask.previousSibling
|
||||||
const rect = page.getBoundingClientRect()
|
const rect = page.getBoundingClientRect()
|
||||||
|
|
||||||
@@ -732,6 +736,10 @@ export default {
|
|||||||
this.$emit('start-drag')
|
this.$emit('start-drag')
|
||||||
},
|
},
|
||||||
mouseMove (e) {
|
mouseMove (e) {
|
||||||
|
if (!this.editable) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
this.isMoved = true
|
this.isMoved = true
|
||||||
|
|
||||||
const page = this.$parent.$refs.mask.previousSibling
|
const page = this.$parent.$refs.mask.previousSibling
|
||||||
|
|||||||
Reference in New Issue
Block a user