Skip to content

Commit f7498bb

Browse files
author
Andrzej Antoni Kwaśniewski
committed
remove no longer necessary
1 parent ae6e532 commit f7498bb

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

packages/react-native-gesture-handler/apple/RNGestureHandler.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
- (void)updateRelations:(nonnull NSDictionary *)relations;
9696
- (void)handleGesture:(nonnull id)recognizer fromReset:(BOOL)fromReset;
9797
- (void)handleGesture:(nonnull id)recognizer inState:(RNGestureHandlerState)state;
98-
- (CGRect)getViewBounds;
9998
- (BOOL)containsPointInView;
10099
- (RNGestureHandlerState)state;
101100
- (nullable RNGestureHandlerEventExtraData *)eventExtraData:(nonnull id)recognizer;

packages/react-native-gesture-handler/apple/RNGestureHandler.mm

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -677,20 +677,10 @@ - (void)reset
677677
}
678678
}
679679

680-
- (CGRect)getViewBounds
681-
{
682-
CGRect bounds = _recognizer.view.bounds;
683-
if (bounds.size.width == 0 and bounds.size.height == 0 and bounds.origin.x == 0 and bounds.origin.y == 0 and
684-
_recognizer.view.subviews.count) {
685-
bounds = _recognizer.view.subviews[0].bounds;
686-
}
687-
return bounds;
688-
}
689-
690680
- (BOOL)containsPointInView
691681
{
692682
CGPoint pt = [_recognizer locationInView:_recognizer.view];
693-
CGRect hitFrame = RNGHHitSlopInsetRect([self getViewBounds], _hitSlop);
683+
CGRect hitFrame = RNGHHitSlopInsetRect(_recognizer.view.bounds, _hitSlop);
694684
return CGRectContainsPoint(hitFrame, pt);
695685
}
696686

0 commit comments

Comments
 (0)