We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c25320 commit 54232bfCopy full SHA for 54232bf
src/components/scroll/scroll.vue
@@ -282,6 +282,9 @@
282
this.scroll.off('scroll', this._pullDownScrollHandle)
283
},
284
_pullDownHandle() {
285
+ if (this.resetPullDownTimer) {
286
+ clearTimeout(this.resetPullDownTimer)
287
+ }
288
this.beforePullDown = false
289
this.isPullingDown = true
290
this.$emit(EVENT_PULLING_DOWN)
@@ -310,13 +313,12 @@
310
313
return new Promise((resolve) => {
311
314
setTimeout(() => {
312
315
this.scroll.finishPullDown()
- this.isPullingDown = false
316
resolve()
317
}, stopTime)
318
})
319
320
_afterPullDown(dirty) {
- setTimeout(() => {
321
+ this.resetPullDownTimer = setTimeout(() => {
322
this.pullDownStyle = `top:${PULL_DOWN_ELEMENT_INITIAL_HEIGHT}px`
323
this.beforePullDown = true
324
dirty && this.refresh()
0 commit comments