Handling paging on any view when sycning dashboard with river.

This commit is contained in:
Samuel Clay 2014-02-21 12:45:17 -08:00
parent be44b5dba4
commit 1d0f0bb45a
2 changed files with 6 additions and 4 deletions

View file

@ -881,9 +881,6 @@
}
if (self.feedDetailViewController.storiesCollection.transferredFromDashboard) {
[self.dashboardViewController.storiesModule.storiesCollection
transferStoriesFromCollection:self.feedDetailViewController.storiesCollection];
self.dashboardViewController.storiesModule.feedPage = self.feedDetailViewController.feedPage + 1;
[self.dashboardViewController.storiesModule fadeSelectedCell];
}
}

View file

@ -241,7 +241,12 @@ static UIFont *userLabelFont;
// NSLog(@"back gesture: %d, %f - %f/%f", (int)gesture.state, percentage, point.x, viewWidth);
if (gesture.state == UIGestureRecognizerStateBegan) {
[appDelegate.dashboardViewController.storiesModule fadeSelectedCell:NO];
if (appDelegate.storiesCollection.transferredFromDashboard) {
[appDelegate.dashboardViewController.storiesModule.storiesCollection
transferStoriesFromCollection:appDelegate.storiesCollection];
appDelegate.dashboardViewController.storiesModule.feedPage = appDelegate.feedDetailViewController.feedPage + 1;
[appDelegate.dashboardViewController.storiesModule fadeSelectedCell:NO];
}
} else if (gesture.state == UIGestureRecognizerStateChanged) {
[appDelegate.masterContainerViewController interactiveTransitionFromFeedDetail:percentage];
} else if (gesture.state == UIGestureRecognizerStateEnded) {