From 81766600bf3d529db147b350a771e865c4eaf925 Mon Sep 17 00:00:00 2001 From: Wilson Yuan Date: Mon, 24 Oct 2016 12:16:59 +0800 Subject: [PATCH] Fix tapped bugs when make a scale transform for view --- iCarousel/iCarousel.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iCarousel/iCarousel.m b/iCarousel/iCarousel.m index 485a878bb8..97595c2b4e 100644 --- a/iCarousel/iCarousel.m +++ b/iCarousel/iCarousel.m @@ -384,6 +384,10 @@ - (UIView *)itemViewAtPoint:(CGPoint)point { return view; } + else if (CGRectContainsPoint(view.superview.frame, point)) + { + return view; + } } return nil; }