From 478b4c7babd11764acf3ed7a07ff5d15b167de76 Mon Sep 17 00:00:00 2001 From: Ryan Nystrom Date: Wed, 11 Feb 2015 18:04:22 -0800 Subject: [PATCH] Allow touches and long press on ASTextNode fixes #262 --- AsyncDisplayKit/ASTextNode.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/AsyncDisplayKit/ASTextNode.mm b/AsyncDisplayKit/ASTextNode.mm index 161f689fe0..6695f328c4 100644 --- a/AsyncDisplayKit/ASTextNode.mm +++ b/AsyncDisplayKit/ASTextNode.mm @@ -228,6 +228,7 @@ ASDISPLAYNODE_INLINE CGFloat ceilPixelValue(CGFloat f) // If we are view-backed, support gesture interaction. if (!self.isLayerBacked) { _longPressGestureRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(_handleLongPress:)]; + _longPressGestureRecognizer.cancelsTouchesInView = NO; _longPressGestureRecognizer.delegate = self; [self.view addGestureRecognizer:_longPressGestureRecognizer]; }