mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing scroll on story for traversal buttons in those in between story heights.
This commit is contained in:
parent
15644d097c
commit
3975abfbb0
3 changed files with 7 additions and 7 deletions
|
@ -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) {
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "1010"
|
||||
endingLineNumber = "1010"
|
||||
landmarkName = "@implementation StoryPageControl"
|
||||
landmarkType = "3">
|
||||
landmarkName = "-doNextUnreadStory"
|
||||
landmarkType = "5">
|
||||
</FileBreakpoint>
|
||||
</FileBreakpoints>
|
||||
<SymbolicBreakpoints>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue