Skip to content

Commit

Permalink
Merge pull request facebook#2 from skillz/fix-section-headers
Browse files Browse the repository at this point in the history
Fix RCTScrollView stickyHeader touch passing. [#99527680]
  • Loading branch information
Tj committed Aug 4, 2015
2 parents 78b5ff9 + 9a24535 commit d48bd8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion React/Views/RCTScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
}
}];

return stickyHeader ?: [super hitTest:point withEvent:event];
CGPoint convertedPoint = [stickyHeader convertPoint:point fromView:self];
return stickyHeader ? [stickyHeader hitTest:convertedPoint withEvent:event] :
[super hitTest:point withEvent:event];
}

@end
Expand Down

0 comments on commit d48bd8d

Please sign in to comment.