File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
ECSlidingViewController/Vendor/ECSlidingViewController Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -454,17 +454,17 @@ - (void)topViewHorizontalCenterDidChange:(CGFloat)newHorizontalCenter
454
454
455
455
- (void )addTopViewSnapshot
456
456
{
457
- if (!self.topViewSnapshot .superview && !self.shouldAllowUserInteractionsWhenAnchored ) {
458
- topViewSnapshot.layer .contents = (id )[UIImage imageWithUIView: self .topView].CGImage ;
459
-
460
- if (self.shouldAddPanGestureRecognizerToTopViewSnapshot && (_resetStrategy & ECPanning)) {
461
- if (!_topViewSnapshotPanGesture) {
462
- _topViewSnapshotPanGesture = [[UIPanGestureRecognizer alloc ] initWithTarget: self action: @selector (updateTopViewHorizontalCenterWithRecognizer: )];
463
- }
464
- [topViewSnapshot addGestureRecognizer: _topViewSnapshotPanGesture];
465
- }
466
- [self .topView addSubview: self .topViewSnapshot];
457
+ if (!self.topViewSnapshot .superview && !self.shouldAllowUserInteractionsWhenAnchored ) {
458
+ topViewSnapshot.layer .contents = (id )[UIImage imageWithUIView: self .topView].CGImage ;
459
+
460
+ if (self.shouldAddPanGestureRecognizerToTopViewSnapshot && (_resetStrategy & ECPanning)) {
461
+ if (!_topViewSnapshotPanGesture) {
462
+ _topViewSnapshotPanGesture = [[UIPanGestureRecognizer alloc ] initWithTarget: self action: @selector (updateTopViewHorizontalCenterWithRecognizer: )];
463
+ }
464
+ [topViewSnapshot addGestureRecognizer: _topViewSnapshotPanGesture];
467
465
}
466
+ [self .topView addSubview: self .topViewSnapshot];
467
+ }
468
468
}
469
469
470
470
- (void )removeTopViewSnapshot
You can’t perform that action at this time.
0 commit comments