Skip to content

Commit

Permalink
disabled feed menu
Browse files Browse the repository at this point in the history
when sharing or on webview, panning would show side menu
  • Loading branch information
Alfredo Uribe committed Dec 12, 2014
1 parent 1a97879 commit b9394fa
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,20 @@ - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
}
}

MFSideMenuContainerViewController *rootVC =
(MFSideMenuContainerViewController*)[[[[UIApplication sharedApplication] delegate] window] rootViewController];

// Prevent collectionview scrolling when shar bar is showing
if (scrollView.contentOffset.y < 0) {
rootVC.panMode = MFSideMenuPanModeNone;
self.collectionView_feedItems.userInteractionEnabled = NO;
} else {
self.collectionView_feedItems.userInteractionEnabled = YES;
rootVC.panMode = MFSideMenuPanModeDefault;
}

if (scrollView.contentOffset.y >= scrollView.frame.size.height) {
rootVC.panMode = MFSideMenuPanModeNone;
}

// Don't allow drags from the share view to go past the base view without a stop
Expand Down

0 comments on commit b9394fa

Please sign in to comment.