From 436e66014ca2433a9bf207b0f0db1d99085ad355 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Tue, 7 Jan 2014 13:43:37 +0000 Subject: =?UTF-8?q?iOS:=20don=E2=80=99t=20allow=20hiding=20of=20the=20navi?= =?UTF-8?q?gation=20bar=20when=20it=20is=20other=20than=20at=20the=20root?= =?UTF-8?q?=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seems more natural and avoids cases where tapping doesn’t bring the bar back, hence trapping the user in one of the submodes. --- platform/ios/Classes/MuDocumentController.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'platform') 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 -- cgit v1.2.3