From 25b061ab74519f1277894222d04213a0bcc885aa Mon Sep 17 00:00:00 2001 From: tangshuang Date: Mon, 9 Dec 2019 16:22:55 +0800 Subject: [PATCH] fix isEdge --- src/PullToRefresh.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PullToRefresh.tsx b/src/PullToRefresh.tsx index a77ea96..1494743 100644 --- a/src/PullToRefresh.tsx +++ b/src/PullToRefresh.tsx @@ -157,7 +157,7 @@ export default class PullToRefresh extends React.Component { } } if (direction === UP) { - return ele.scrollHeight - ele.scrollTop === ele.clientHeight; + return ele.scrollHeight - ele.scrollTop <= ele.clientHeight; } if (direction === DOWN) { return ele.scrollTop <= 0;