diff --git a/iphone/Maps/UI/PlacePage/PlacePageLayout/ActionBar/MWMActionBarButton.m b/iphone/Maps/UI/PlacePage/PlacePageLayout/ActionBar/MWMActionBarButton.m index 7b6d3f347e..a5fc64a15d 100644 --- a/iphone/Maps/UI/PlacePage/PlacePageLayout/ActionBar/MWMActionBarButton.m +++ b/iphone/Maps/UI/PlacePage/PlacePageLayout/ActionBar/MWMActionBarButton.m @@ -199,4 +199,8 @@ NSString *titleForButton(MWMActionBarButtonType type, BOOL isSelected) { [NSUserDefaults.standardUserDefaults setBool:true forKey:kUDDidHighlightRouteToButton]; } +- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { + return [self pointInside:point withEvent:event] ? self.button : nil; +} + @end