File tree Expand file tree Collapse file tree
EasyReader/Application/Controllers/Home/ScrollView Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,11 +43,20 @@ - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
4343 }
4444 }
4545
46+ MFSideMenuContainerViewController *rootVC =
47+ (MFSideMenuContainerViewController*)[[[[UIApplication sharedApplication ] delegate ] window ] rootViewController ];
48+
4649 // Prevent collectionview scrolling when shar bar is showing
4750 if (scrollView.contentOffset .y < 0 ) {
51+ rootVC.panMode = MFSideMenuPanModeNone;
4852 self.collectionView_feedItems .userInteractionEnabled = NO ;
4953 } else {
5054 self.collectionView_feedItems .userInteractionEnabled = YES ;
55+ rootVC.panMode = MFSideMenuPanModeDefault;
56+ }
57+
58+ if (scrollView.contentOffset .y >= scrollView.frame .size .height ) {
59+ rootVC.panMode = MFSideMenuPanModeNone;
5160 }
5261
5362 // Don't allow drags from the share view to go past the base view without a stop
You can’t perform that action at this time.
0 commit comments