session-ios/Signal/src/view controllers/NextResponderScrollView.m
2014-05-06 19:41:08 +02:00

27 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