Skip to content

Commit

Permalink
add comment on hitTest
Browse files Browse the repository at this point in the history
  • Loading branch information
George Harker committed Apr 6, 2015
1 parent 6699493 commit 2454f34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pagingscrollview/src/NIPagingScrollView.m
Expand Up @@ -421,6 +421,8 @@ - (void)setFrame:(CGRect)frame {
}

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
// We must forward hits for the scrollView or else the smaller frame when
// it is inset will prevent touches outside the scrollView bounds.
if ([self pointInside:point withEvent:event]) {
return _scrollView;
}
Expand Down

0 comments on commit 2454f34

Please sign in to comment.