summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2014-01-07 13:43:37 +0000
committerPaul Gardiner <paul.gardiner@artifex.com>2014-01-07 16:28:32 +0000
commit436e66014ca2433a9bf207b0f0db1d99085ad355 (patch)
tree7b94192d7a287f1af1519c5a590ee9d5f83a27bc /platform
parentea721cfeb7b09d64c06d71648098dd818df2618c (diff)
downloadmupdf-436e66014ca2433a9bf207b0f0db1d99085ad355.tar.xz
iOS: don’t allow hiding of the navigation bar when it is other than at the root menu
Seems more natural and avoids cases where tapping doesn’t bring the bar back, hence trapping the user in one of the submodes.
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/Classes/MuDocumentController.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/ios/Classes/MuDocumentController.m b/platform/ios/Classes/MuDocumentController.m
index 4415bf08..05a698e9 100644
--- a/platform/ios/Classes/MuDocumentController.m
+++ b/platform/ios/Classes/MuDocumentController.m
@@ -695,7 +695,7 @@ static void flattenOutline(NSMutableArray *titles, NSMutableArray *pages, fz_out
} else {
if ([[self navigationController] isNavigationBarHidden])
[self showNavigationBar];
- else
+ else if (barmode == BARMODE_MAIN)
[self hideNavigationBar];
}
}
@@ -724,7 +724,8 @@ static void flattenOutline(NSMutableArray *titles, NSMutableArray *pages, fz_out
- (void) scrollViewWillBeginDragging: (UIScrollView *)scrollView
{
- [self hideNavigationBar];
+ if (barmode == BARMODE_MAIN)
+ [self hideNavigationBar];
}
- (void) scrollViewDidScroll: (UIScrollView*)scrollview