Allow touches and long press on ASTextNode

fixes #262
This commit is contained in:
Ryan Nystrom
2015-02-11 18:04:22 -08:00
parent 0d0983e8f2
commit 478b4c7bab

View File

@@ -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];
}