diff --git a/src/vue-pull-refresh.vue b/src/vue-pull-refresh.vue index c0fbb96..6eee33d 100644 --- a/src/vue-pull-refresh.vue +++ b/src/vue-pull-refresh.vue @@ -112,6 +112,7 @@ // bind touchstart event to store start position of touch el.addEventListener('touchstart', e => { + this.cancelPull = false; if (el.scrollTop === 0) { this.canPull = true; } else { @@ -126,6 +127,11 @@ * finally, update the status of pull down based on the distance */ el.addEventListener('touchmove', e => { + if (this.cancelPull) { + this.pullDown.height = 0; + return; + } + if (!this.canPull) { return; }