iOS: Select first story when navigating to previous story via keyboard if no story selected (#826).

Makes behavior consistent with the Web.
This commit is contained in:
Nicholas Riley 2015-11-24 15:02:53 -05:00
parent 52cfb516f0
commit 885463fa71

View file

@ -828,8 +828,11 @@
- (void)changeToPreviousPage:(id)sender { - (void)changeToPreviousPage:(id)sender {
NSInteger previousPageIndex = previousPage.pageIndex; NSInteger previousPageIndex = previousPage.pageIndex;
if (previousPageIndex < 0) if (previousPageIndex < 0) {
if (currentPage.pageIndex < 0)
[self changeToNextPage:sender];
return; return;
}
[self changePage:previousPageIndex animated:YES]; [self changePage:previousPageIndex animated:YES];
} }