Skip to content

Commit

Permalink
Potential Fix for #42
Browse files Browse the repository at this point in the history
We weren't calling the completion block if no side was currently open.
  • Loading branch information
kcharwood committed Jun 6, 2013
1 parent 74b2b65 commit 6d944dc
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 @@ -862,6 +862,11 @@ -(void)finishAnimationForPanGestureWithXVelocity:(CGFloat)xVelocity completion:(
[self openDrawerSide:MMDrawerSideRight animated:YES completion:completion];
}
}
else {
if(completion){
completion(NO);
}
}
}

-(void)updateDrawerVisualStateForDrawerSide:(MMDrawerSide)drawerSide percentVisible:(CGFloat)percentVisible{
Expand Down

0 comments on commit 6d944dc

Please sign in to comment.