Permalink
Browse files

Minor hitTest:withEvent: cleanup.

  • Loading branch information...
matej committed Jul 17, 2013
1 parent 3ecd55d commit dc4642b0803625b2b86fe4b1d948ed4fd04d5a6d
Showing with 3 additions and 3 deletions.
  1. +3 −3 MBPullDownController/MBPullDownController.m
@@ -493,9 +493,9 @@ - (void)layoutSubviews {
@implementation MBPullDownControllerContainerView
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
- UIScrollView *frontView = (UIScrollView *)self.pullDownController.frontController.view;
- if (frontView) {
- CGPoint pointInScrollVeiw = [frontView convertPoint:point fromView:self];
+ UIScrollView *scrollView = [self.pullDownController scrollView];
+ if (scrollView) {
+ CGPoint pointInScrollVeiw = [scrollView convertPoint:point fromView:self];
if (pointInScrollVeiw.y <= 0.f) {
return [self.pullDownController.backController.view hitTest:point withEvent:event];
}

0 comments on commit dc4642b

Please sign in to comment.