mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
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
|