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

25 lines
567 B
Objective-C

#import "TGPhotoPaintSettingsWrapperView.h"
@implementation TGPhotoPaintSettingsWrapperView
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
UIView *view = [super hitTest:point withEvent:event];
if (view == self)
{
CGPoint location = [self convertPoint:point toView:nil];
if (self.pressed != nil)
self.pressed(location);
if (self.suppressTouchAtPoint != nil && self.suppressTouchAtPoint(location))
return view;
return nil;
}
return view;
}
@end