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