Merge pull request #308 from facebook/issue-262

Allow touches and long press on ASTextNode
This commit is contained in:
Nadine Salter 2015-02-11 18:12:55 -08:00
commit cd3a859f8c

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