Skip to content

Commit b9394fa

Browse files
author
Alfredo Uribe
committed
disabled feed menu
when sharing or on webview, panning would show side menu
1 parent 1a97879 commit b9394fa

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

EasyReader/Application/Controllers/Home/ScrollView/EZRHomeScrollViewDelegate.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)