Swiftgram/LegacyComponents/TGPaintingWrapperView.m
2017-07-28 16:50:06 +03: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