mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[ASControlNode] Upgrades to +setEnableHitTestDebug: to intersect hitTestSlop with parents' bounds+slop, to accurately predict and visualize UIKit event delivery edge cases.
This commit is contained in:
@@ -2383,11 +2383,13 @@ 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