mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-25 17:43:18 +00:00
Merge pull request #308 from facebook/issue-262
Allow touches and long press on ASTextNode
This commit is contained in:
commit
cd3a859f8c
@ -228,6 +228,7 @@ ASDISPLAYNODE_INLINE CGFloat ceilPixelValue(CGFloat f)
|
|||||||
// If we are view-backed, support gesture interaction.
|
// If we are view-backed, support gesture interaction.
|
||||||
if (!self.isLayerBacked) {
|
if (!self.isLayerBacked) {
|
||||||
_longPressGestureRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(_handleLongPress:)];
|
_longPressGestureRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(_handleLongPress:)];
|
||||||
|
_longPressGestureRecognizer.cancelsTouchesInView = NO;
|
||||||
_longPressGestureRecognizer.delegate = self;
|
_longPressGestureRecognizer.delegate = self;
|
||||||
[self.view addGestureRecognizer:_longPressGestureRecognizer];
|
[self.view addGestureRecognizer:_longPressGestureRecognizer];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user