Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,15 @@ - (void)reset

- (BOOL)containsPointInView
{
CGRect bounds = _recognizer.view.bounds;
CGPoint pt = [_recognizer locationInView:_recognizer.view];
CGRect hitFrame = RNGHHitSlopInsetRect(_recognizer.view.bounds, _hitSlop);

if (bounds.size.width == 0 and bounds.size.height == 0 and bounds.origin.x == 0 and bounds.origin.y == 0 and
_recognizer.view.subviews.count) {
bounds = _recognizer.view.subviews[0].bounds;
pt = [_recognizer locationInView:_recognizer.view.subviews[0]];
}
CGRect hitFrame = RNGHHitSlopInsetRect(bounds, _hitSlop);
return CGRectContainsPoint(hitFrame, pt);
}

Expand Down
Loading