Skip to content

Commit

Permalink
Merge pull request #178 from joejcon1/rightOverpan
Browse files Browse the repository at this point in the history
fixed a bug where user could overpan on the left even if allowLeftOverpa...
  • Loading branch information
gotosleep committed Mar 5, 2014
2 parents e1d93d1 + 683461c commit 5913385
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions JASidePanels/Source/JASidePanelController.m
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5913385

Please sign in to comment.