mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
[ASDisplayNode] Remove #if gating of ASDisplayNode hitTest: (I'd misread this as _ASDisplayView's implementation, and both are needed).
This commit is contained in:
@@ -500,5 +500,4 @@ void _ASEnumerateControlEventsIncludedInMaskWithBlock(ASControlNodeEvent mask, v
|
||||
_enableHitTestDebug = enable;
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@@ -2383,13 +2383,11 @@ void recursivelyTriggerDisplayForLayer(CALayer *layer, BOOL shouldBlock)
|
||||
return [superview gestureRecognizerShouldBegin:gestureRecognizer];
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
return [_view hitTest:point withEvent:event];
|
||||
}
|
||||
#endif
|
||||
|
||||
- (void)setHitTestSlop:(UIEdgeInsets)hitTestSlop
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user