Permalink
Browse files

Merge pull request #178 from joejcon1/rightOverpan

fixed a bug where user could overpan on the left even if allowLeftOverpa...
  • Loading branch information...
2 parents e1d93d1 + 683461c commit 5913385464f1aec77c20783dbfd4985cfd3f89d6 @gotosleep 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 5913385

Please sign in to comment.