mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
26 lines
800 B
Objective-C
26 lines
800 B
Objective-C
#import "NextResponderScrollView.h"
|
|
|
|
@implementation NextResponderScrollView
|
|
|
|
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
|
|
if (!self.dragging){
|
|
[self.nextResponder touchesBegan: touches withEvent:event];
|
|
} else {
|
|
[super touchesBegan: touches withEvent: event];
|
|
}
|
|
}
|
|
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
|
|
if (!self.dragging){
|
|
[self.nextResponder touchesEnded: touches withEvent:event];
|
|
} else {
|
|
[super touchesEnded: touches withEvent: event];
|
|
}
|
|
}
|
|
-(void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
|
|
if (!self.dragging){
|
|
[self.nextResponder touchesCancelled:touches withEvent:event];
|
|
} else {
|
|
[super touchesEnded: touches withEvent: event];
|
|
}
|
|
}
|
|
@end
|