Skip to content

Commit

Permalink
Merge pull request mutualmobile#246 from mutualmobile/246_disable_ani…
Browse files Browse the repository at this point in the history
…mation_interaction

Disable user interaction during animation
  • Loading branch information
kcharwood committed May 28, 2014
2 parents 661ce21 + 1ee1fd8 commit 8e67723
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MMDrawerController/MMDrawerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,11 @@ -(void)setStatusBarViewBackgroundColor:(UIColor *)dummyStatusBarColor{
[self.dummyStatusBarView setBackgroundColor:_statusBarViewBackgroundColor];
}

-(void)setAnimatingDrawer:(BOOL)animatingDrawer{
_animatingDrawer = animatingDrawer;
[self.view setUserInteractionEnabled:!animatingDrawer];
}

#pragma mark - Getters
-(CGFloat)maximumLeftDrawerWidth{
if(self.leftDrawerViewController){
Expand Down

0 comments on commit 8e67723

Please sign in to comment.