File tree Expand file tree Collapse file tree
packages/react-native-gesture-handler/apple Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments