Skip to content

Commit 5913385

Browse files
committed
Merge pull request gotosleep#178 from joejcon1/rightOverpan
fixed a bug where user could overpan on the left even if allowLeftOverpa...
2 parents e1d93d1 + 683461c commit 5913385

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

JASidePanels/Source/JASidePanelController.m

+2
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,8 @@ - (CGFloat)_correctMovement:(CGFloat)movement {
609609
} else if (self.state == JASidePanelRightVisible && !self.allowRightOverpan) {
610610
if (position < -self.rightVisibleWidth) {
611611
return 0.0f;
612+
} else if ((self.style == JASidePanelMultipleActive || self.pushesSidePanels) && position > 0.0f) {
613+
return -_centerPanelRestingFrame.origin.x;
612614
} else if (position > self.rightPanelContainer.frame.origin.x) {
613615
return self.rightPanelContainer.frame.origin.x - _centerPanelRestingFrame.origin.x;
614616
}

0 commit comments

Comments
 (0)