fix(List): incorrect reaching edge condition when direction is up (#5439)
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ export default createComponent({
|
|||||||
const placeholderRect = this.$refs.placeholder.getBoundingClientRect();
|
const placeholderRect = this.$refs.placeholder.getBoundingClientRect();
|
||||||
|
|
||||||
if (direction === 'up') {
|
if (direction === 'up') {
|
||||||
isReachEdge = placeholderRect.top - scrollerRect.top <= offset;
|
isReachEdge = scrollerRect.top - placeholderRect.top <= offset;
|
||||||
} else {
|
} else {
|
||||||
isReachEdge = placeholderRect.bottom - scrollerRect.bottom <= offset;
|
isReachEdge = placeholderRect.bottom - scrollerRect.bottom <= offset;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user