Permalink
Browse files

Merge pull request #56 from nagoya0/reload

PullToRefreshWebView glitch on small screen.
  • Loading branch information...
2 parents 0dac2e6 + 35a3dce commit ccdbd615d2a4fb2bfb5e79e22409a951ab71a8f7 @chrisbanes committed Apr 12, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 library/src/com/handmark/pulltorefresh/library/PullToRefreshWebView.java
@@ -72,6 +72,7 @@ protected boolean isReadyForPullDown() {
@Override
protected boolean isReadyForPullUp() {
- return mRefreshableView.getScrollY() >= (mRefreshableView.getContentHeight() - mRefreshableView.getHeight());
+ int exactContentHeight = (int) Math.floor(mRefreshableView.getContentHeight() * mRefreshableView.getScale());
+ return mRefreshableView.getScrollY() >= (exactContentHeight - mRefreshableView.getHeight());
}
}

0 comments on commit ccdbd61

Please sign in to comment.