Skip to content

Commit

Permalink
Fix issue to allow page scrolling again on iOS
Browse files Browse the repository at this point in the history
See #14
  • Loading branch information
mbackschat committed Jan 8, 2016
1 parent 27d6deb commit 4e5d575
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ios/CDVKeyboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,12 @@ - (void)shrinkViewKeyboardWillChangeFrame:(NSNotification*)notif

- (void)scrollViewDidScroll:(UIScrollView*)scrollView
{
if (_shrinkView) {
scrollView.bounds = self.webView.bounds;
if (_shrinkView && _keyboardIsVisible) {
CGFloat maxY = scrollView.contentSize.height - scrollView.bounds.size.height;
if (scrollView.bounds.origin.y > maxY) {
scrollView.bounds = CGRectMake(scrollView.bounds.origin.x, maxY,
scrollView.bounds.size.width, scrollView.bounds.size.height);
}
}
}

Expand Down

0 comments on commit 4e5d575

Please sign in to comment.