@@ -21,7 +21,7 @@ @interface ECSlidingViewController()
21
21
22
22
@property (nonatomic , strong ) UIView *topViewSnapshot;
23
23
@property (nonatomic , assign ) CGFloat initialTouchPositionX;
24
- @property (nonatomic , assign ) CGFloat initialHoizontalCenter ;
24
+ @property (nonatomic , assign ) CGFloat initialHorizontalCenter ;
25
25
@property (nonatomic , strong ) UIPanGestureRecognizer *panGesture;
26
26
@property (nonatomic , strong ) UITapGestureRecognizer *resetTapGesture;
27
27
@property (nonatomic , strong ) UIPanGestureRecognizer *topViewSnapshotPanGesture;
@@ -86,7 +86,7 @@ @implementation ECSlidingViewController
86
86
// category properties
87
87
@synthesize topViewSnapshot;
88
88
@synthesize initialTouchPositionX;
89
- @synthesize initialHoizontalCenter ;
89
+ @synthesize initialHorizontalCenter ;
90
90
@synthesize panGesture = _panGesture;
91
91
@synthesize resetTapGesture;
92
92
@synthesize underLeftShowing = _underLeftShowing;
@@ -253,10 +253,10 @@ - (void)updateTopViewHorizontalCenterWithRecognizer:(UIPanGestureRecognizer *)re
253
253
254
254
if (recognizer.state == UIGestureRecognizerStateBegan) {
255
255
self.initialTouchPositionX = currentTouchPositionX;
256
- self.initialHoizontalCenter = self.topView .center .x ;
256
+ self.initialHorizontalCenter = self.topView .center .x ;
257
257
} else if (recognizer.state == UIGestureRecognizerStateChanged) {
258
258
CGFloat panAmount = self.initialTouchPositionX - currentTouchPositionX;
259
- CGFloat newCenterPosition = self.initialHoizontalCenter - panAmount;
259
+ CGFloat newCenterPosition = self.initialHorizontalCenter - panAmount;
260
260
261
261
if ((newCenterPosition < self.resettedCenter && (self.anchorLeftTopViewCenter == NSNotFound || self.underRightViewController == nil )) ||
262
262
(newCenterPosition > self.resettedCenter && (self.anchorRightTopViewCenter == NSNotFound || self.underLeftViewController == nil ))) {
0 commit comments