From f9629beabb092e4c01be67095ce6c914be0f0927 Mon Sep 17 00:00:00 2001 From: George A Date: Mon, 11 Jul 2016 20:48:12 +0200 Subject: [PATCH] [ASMapNode] Defaulting userInteractionEnabled to YES. --- AsyncDisplayKit/ASMapNode.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AsyncDisplayKit/ASMapNode.mm b/AsyncDisplayKit/ASMapNode.mm index 699368ba..449b091a 100644 --- a/AsyncDisplayKit/ASMapNode.mm +++ b/AsyncDisplayKit/ASMapNode.mm @@ -42,6 +42,7 @@ } self.backgroundColor = ASDisplayNodeDefaultPlaceholderColor(); self.clipsToBounds = YES; + self.userInteractionEnabled = YES; _needsMapReloadOnBoundsChange = YES; _liveMap = NO; @@ -257,7 +258,6 @@ - (void)addLiveMap { ASDisplayNodeAssertMainThread(); - self.userInteractionEnabled = YES; if (!_mapView) { __weak ASMapNode *weakSelf = self; _mapView = [[MKMapView alloc] initWithFrame:CGRectZero]; @@ -276,7 +276,6 @@ - (void)removeLiveMap { - self.userInteractionEnabled = NO; [_mapView removeFromSuperview]; _mapView = nil; }