mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-06 13:12:49 +00:00
git-subtree-dir: submodules/LegacyComponents git-subtree-mainline:6086305304git-subtree-split:d559434616
18 lines
425 B
Objective-C
18 lines
425 B
Objective-C
#import "TGPaintingWrapperView.h"
|
|
|
|
@implementation TGPaintingWrapperView
|
|
|
|
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event
|
|
{
|
|
bool receiveTouch = true;
|
|
if (self.shouldReceiveTouch != nil)
|
|
receiveTouch = self.shouldReceiveTouch();
|
|
|
|
if (receiveTouch)
|
|
return [self.superview pointInside:[self convertPoint:point toView:self.superview] withEvent:event];
|
|
|
|
return false;
|
|
}
|
|
|
|
@end
|