From ae20752d7a863734a359b6bda1b4b6d03d89fcdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E7=BF=9B=E7=84=B6?= Date: Wed, 1 Jan 2020 22:03:58 +0800 Subject: [PATCH] fix(List): incorrect reaching edge condition when direction is up (#5439) --- src/list/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/list/index.js b/src/list/index.js index 5ec718968..4478a945c 100644 --- a/src/list/index.js +++ b/src/list/index.js @@ -95,7 +95,7 @@ export default createComponent({ const placeholderRect = this.$refs.placeholder.getBoundingClientRect(); if (direction === 'up') { - isReachEdge = placeholderRect.top - scrollerRect.top <= offset; + isReachEdge = scrollerRect.top - placeholderRect.top <= offset; } else { isReachEdge = placeholderRect.bottom - scrollerRect.bottom <= offset; }