diff options
Diffstat (limited to 'CyteKit/WebViewController.mm')
-rw-r--r-- | CyteKit/WebViewController.mm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index f4bb58e..7cb5979 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -559,6 +559,7 @@ float CYScrollViewDecelerationRateNormal; allowsNavigationAction_ = true; [self setHidesNavigationBar:NO]; + [self setScrollAlwaysBounceVertical:true]; [self setScrollIndicatorStyle:UIScrollViewIndicatorStyleDefault]; // XXX: do we still need to do this? @@ -996,6 +997,20 @@ float CYScrollViewDecelerationRateNormal; [self setHidesNavigationBar:[value boolValue]]; } +- (void) setScrollAlwaysBounceVertical:(bool)value { + if ([webview_ respondsToSelector:@selector(_scrollView)]) { + UIScrollView *scroller([webview_ _scrollView]); + [scroller setAlwaysBounceVertical:value]; + } else if ([webview_ respondsToSelector:@selector(_scroller)]) { + //UIScroller *scroller([webview_ _scroller]); + // XXX: I am sad here. + } else return; +} + +- (void) setScrollAlwaysBounceVerticalNumber:(NSNumber *)value { + [self setScrollAlwaysBounceVertical:[value boolValue]]; +} + - (void) setScrollIndicatorStyle:(UIScrollViewIndicatorStyle)style { if ([webview_ respondsToSelector:@selector(_scrollView)]) { UIScrollView *scroller([webview_ _scrollView]); |