Swiftgram/submodules/LegacyComponents/Sources/TGPaintingWrapperView.m
2020-02-22 15:38:54 +04:00

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