Permalink
Browse files

fixed a bug where user could overpan on the left even if allowLeftOve…

…rpan was set to false
  • Loading branch information...
1 parent e1d93d1 commit 683461ceb53c5502101096093226f6cfd5d05b1b Joe Conway committed Mar 5, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 JASidePanels/Source/JASidePanelController.m
@@ -609,6 +609,8 @@ - (CGFloat)_correctMovement:(CGFloat)movement {
} else if (self.state == JASidePanelRightVisible && !self.allowRightOverpan) {
if (position < -self.rightVisibleWidth) {
return 0.0f;
+ } else if ((self.style == JASidePanelMultipleActive || self.pushesSidePanels) && position > 0.0f) {
+ return -_centerPanelRestingFrame.origin.x;
} else if (position > self.rightPanelContainer.frame.origin.x) {
return self.rightPanelContainer.frame.origin.x - _centerPanelRestingFrame.origin.x;
}

0 comments on commit 683461c

Please sign in to comment.