Skip to content

Commit

Permalink
small bug fix in hitTest:withEvent:
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwojtaszek committed Apr 10, 2012
1 parent ccfb10d commit 7023bd5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Cascade/CLCascadeNavigationController/CLCascadeView.m
Expand Up @@ -116,7 +116,7 @@ - (id)initWithFrame:(CGRect)frame {
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
id item = nil;
// create enumerator
NSEnumerator* enumerator = [_pages objectEnumerator];
NSEnumerator* enumerator = [_pages reverseObjectEnumerator];
// enumarate pages
UIView *view = nil;

Expand All @@ -128,7 +128,7 @@ - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {

if (CGRectContainsPoint(rect, point)) {
CGPoint newPoint = [self convertPoint:point toView:page];
view = [page hitTest:newPoint withEvent:event];
view = [page hitTest:newPoint withEvent:event]; break;
}
}
}
Expand Down Expand Up @@ -820,10 +820,10 @@ - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {

}

///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView {
[scrollView setPagingEnabled:NO];
}
/////////////////////////////////////////////////////////////////////////////////////////////////////
//- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView {
// [scrollView setPagingEnabled:NO];
//}

///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
Expand Down

0 comments on commit 7023bd5

Please sign in to comment.