File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
ECSlidingViewController/Vendor/ECSlidingViewController Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,8 @@ - (void)updateTopViewHorizontalCenterWithRecognizer:(UIPanGestureRecognizer *)re
256
256
CGFloat panAmount = self.initialTouchPositionX - currentTouchPositionX;
257
257
CGFloat newCenterPosition = self.initialHoizontalCenter - panAmount;
258
258
259
- if ((newCenterPosition < self.resettedCenter && self.anchorLeftTopViewCenter == NSNotFound ) || (newCenterPosition > self.resettedCenter && self.anchorRightTopViewCenter == NSNotFound )) {
259
+ if ((newCenterPosition < self.resettedCenter && (self.anchorLeftTopViewCenter == NSNotFound || self.underRightViewController == nil )) ||
260
+ (newCenterPosition > self.resettedCenter && (self.anchorRightTopViewCenter == NSNotFound || self.underLeftViewController == nil ))) {
260
261
newCenterPosition = self.resettedCenter ;
261
262
}
262
263
You can’t perform that action at this time.
0 commit comments