Fixing scroll on story for traversal buttons in those in between story heights.

This commit is contained in:
Samuel Clay 2013-06-26 23:39:25 -07:00
parent 15644d097c
commit 3975abfbb0
3 changed files with 7 additions and 7 deletions

View file

@ -836,7 +836,7 @@
int viewportHeight = self.webView.scrollView.frame.size.height;
int topPosition = self.webView.scrollView.contentOffset.y;
int bottomPosition = webpageHeight - topPosition - viewportHeight;
BOOL singlePage = webpageHeight - 150 <= viewportHeight;
BOOL singlePage = webpageHeight - 200 <= viewportHeight;
BOOL atBottom = bottomPosition < 150;
BOOL atTop = topPosition < 10;
if (!atTop && !atBottom) {

View file

@ -26,8 +26,8 @@
endingColumnNumber = "9223372036854775807"
startingLineNumber = "1010"
endingLineNumber = "1010"
landmarkName = "@implementation StoryPageControl"
landmarkType = "3">
landmarkName = "-doNextUnreadStory"
landmarkType = "5">
</FileBreakpoint>
</FileBreakpoints>
<SymbolicBreakpoints>

View file

@ -13,10 +13,10 @@
// #define BACKGROUND_REFRESH_SECONDS -5
#define BACKGROUND_REFRESH_SECONDS -10*60
// #define NEWSBLUR_URL [NSString stringWithFormat:@"http://nb.local.com"]
// #define NEWSBLUR_HOST [NSString stringWithFormat:@"nb.local.com"]
#define NEWSBLUR_URL [NSString stringWithFormat:@"https://www.newsblur.com"]
#define NEWSBLUR_HOST [NSString stringWithFormat:@"www.newsblur.com"]
#define NEWSBLUR_URL [NSString stringWithFormat:@"http://nb.local.com"]
#define NEWSBLUR_HOST [NSString stringWithFormat:@"nb.local.com"]
// #define NEWSBLUR_URL [NSString stringWithFormat:@"https://www.newsblur.com"]
// #define NEWSBLUR_HOST [NSString stringWithFormat:@"www.newsblur.com"]
#define NEWSBLUR_LINK_COLOR 0x405BA8
#define NEWSBLUR_HIGHLIGHT_COLOR 0xd2e6fd