Skip to content

Commit b5fe1bb

Browse files
committed
Merge pull request ECSlidingViewController#162 from escherba/master
fix typo in property name
2 parents 613c728 + 5d8c0e5 commit b5fe1bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ECSlidingViewController/Vendor/ECSlidingViewController/ECSlidingViewController.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ @interface ECSlidingViewController()
2121

2222
@property (nonatomic, strong) UIView *topViewSnapshot;
2323
@property (nonatomic, assign) CGFloat initialTouchPositionX;
24-
@property (nonatomic, assign) CGFloat initialHoizontalCenter;
24+
@property (nonatomic, assign) CGFloat initialHorizontalCenter;
2525
@property (nonatomic, strong) UIPanGestureRecognizer *panGesture;
2626
@property (nonatomic, strong) UITapGestureRecognizer *resetTapGesture;
2727
@property (nonatomic, strong) UIPanGestureRecognizer *topViewSnapshotPanGesture;
@@ -86,7 +86,7 @@ @implementation ECSlidingViewController
8686
// category properties
8787
@synthesize topViewSnapshot;
8888
@synthesize initialTouchPositionX;
89-
@synthesize initialHoizontalCenter;
89+
@synthesize initialHorizontalCenter;
9090
@synthesize panGesture = _panGesture;
9191
@synthesize resetTapGesture;
9292
@synthesize underLeftShowing = _underLeftShowing;
@@ -253,10 +253,10 @@ - (void)updateTopViewHorizontalCenterWithRecognizer:(UIPanGestureRecognizer *)re
253253

254254
if (recognizer.state == UIGestureRecognizerStateBegan) {
255255
self.initialTouchPositionX = currentTouchPositionX;
256-
self.initialHoizontalCenter = self.topView.center.x;
256+
self.initialHorizontalCenter = self.topView.center.x;
257257
} else if (recognizer.state == UIGestureRecognizerStateChanged) {
258258
CGFloat panAmount = self.initialTouchPositionX - currentTouchPositionX;
259-
CGFloat newCenterPosition = self.initialHoizontalCenter - panAmount;
259+
CGFloat newCenterPosition = self.initialHorizontalCenter - panAmount;
260260

261261
if ((newCenterPosition < self.resettedCenter && (self.anchorLeftTopViewCenter == NSNotFound || self.underRightViewController == nil)) ||
262262
(newCenterPosition > self.resettedCenter && (self.anchorRightTopViewCenter == NSNotFound || self.underLeftViewController == nil))) {

0 commit comments

Comments
 (0)