Skip to content

Commit

Permalink
fixed a bug where user could overpan on the left even if allowLeftOve…
Browse files Browse the repository at this point in the history
…rpan was set to false
  • Loading branch information
Joe Conway committed Mar 5, 2014
1 parent e1d93d1 commit 683461c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions JASidePanels/Source/JASidePanelController.m
Original file line number Diff line number Diff line change
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 683461c

Please sign in to comment.