|
|
@@ -124,10 +124,14 @@ export default { |
|
|
|
Motion(event) { |
|
|
|
if(this.state === STATE_NONE) |
|
|
|
{ |
|
|
|
this.Reset(); |
|
|
|
//k this.Reset(); |
|
|
|
return; |
|
|
|
} |
|
|
|
[this.currentX, this.currentY] = this.GetEventPosition(event); |
|
|
|
if(this.state === STATE_START) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
let dropElement = this.GetCurrentPositionDropElement(event); |
|
|
|
this.UpdateMask(event, this.HasCurrentPositionDropElement(event)); |
|
|
|
if(dropElement && this.dropElement !== dropElement) |
|
|
@@ -137,6 +141,7 @@ export default { |
|
|
|
} |
|
|
|
this.dropElement = dropElement; |
|
|
|
this.$emit('touchdragmotion', this.element); |
|
|
|
event.preventDefault(); |
|
|
|
}, |
|
|
|
Cancel(event) { |
|
|
|
if(this.state === STATE_DRAGGING) |
|
|
|