mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-22 05:24:29 +00:00
Allow double-tap gestures on text nodes
This commit is contained in:
parent
dd10fda42c
commit
29a360d562
@ -196,7 +196,9 @@ void _ASEnumerateControlEventsIncludedInMaskWithBlock(ASControlNodeEvent mask, v
|
|||||||
{
|
{
|
||||||
// If we're interested in touches, this is a tap (the only gesture we care about) and passed -hitTest for us, then no, you may not begin. Sir.
|
// If we're interested in touches, this is a tap (the only gesture we care about) and passed -hitTest for us, then no, you may not begin. Sir.
|
||||||
if (self.enabled && [gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]] && gestureRecognizer.view != self.view) {
|
if (self.enabled && [gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]] && gestureRecognizer.view != self.view) {
|
||||||
return NO;
|
UITapGestureRecognizer *tapRecognizer = (UITapGestureRecognizer *)gestureRecognizer;
|
||||||
|
// Allow double-tap gestures
|
||||||
|
return tapRecognizer.numberOfTapsRequired != 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, go ahead. :]
|
// Otherwise, go ahead. :]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user