Skip to content

Commit

Permalink
Fix tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tj authored and Tj committed Aug 4, 2015
1 parent e198475 commit 12f84d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions React/Views/RCTScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -339,16 +339,16 @@ - (void)dockClosestSectionHeader

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
__block UIView *hitView;
__block UIView *hitView;

[_stickyHeaderIndices enumerateIndexesWithOptions:0 usingBlock:^(NSUInteger idx, BOOL *stop) {
UIView *stickyHeader = [self contentView].reactSubviews[idx];
CGPoint convertedPoint = [stickyHeader convertPoint:point fromView:self];
hitView = [stickyHeader hitTest:convertedPoint withEvent:event];
*stop = (hitView != nil);
}];
[_stickyHeaderIndices enumerateIndexesWithOptions:0 usingBlock:^(NSUInteger idx, BOOL *stop) {
UIView *stickyHeader = [self contentView].reactSubviews[idx];
CGPoint convertedPoint = [stickyHeader convertPoint:point fromView:self];
hitView = [stickyHeader hitTest:convertedPoint withEvent:event];
*stop = (hitView != nil);
}];

return hitView ?: [super hitTest:point withEvent:event];
return hitView ?: [super hitTest:point withEvent:event];
}

@end
Expand Down

0 comments on commit 12f84d6

Please sign in to comment.