From 885463fa71dc95ffdbc89af75e76f72a4ace4037 Mon Sep 17 00:00:00 2001 From: Nicholas Riley Date: Tue, 24 Nov 2015 15:02:53 -0500 Subject: [PATCH] iOS: Select first story when navigating to previous story via keyboard if no story selected (#826). Makes behavior consistent with the Web. --- clients/ios/Classes/StoryPageControl.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clients/ios/Classes/StoryPageControl.m b/clients/ios/Classes/StoryPageControl.m index fd57fc11a..595637ff6 100644 --- a/clients/ios/Classes/StoryPageControl.m +++ b/clients/ios/Classes/StoryPageControl.m @@ -828,8 +828,11 @@ - (void)changeToPreviousPage:(id)sender { NSInteger previousPageIndex = previousPage.pageIndex; - if (previousPageIndex < 0) + if (previousPageIndex < 0) { + if (currentPage.pageIndex < 0) + [self changeToNextPage:sender]; return; + } [self changePage:previousPageIndex animated:YES]; }