1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-05 13:29:05 +01:00
Telegram/legacy/TelegraphKit/TGRTLScreenEdgePanGestureRecognizer.m

28 lines
623 B
Mathematica
Raw Normal View History

2015-10-01 18:19:52 +02:00
/*
* This is the source code of Telegram for iOS v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Peter Iakovlev, 2013.
*/
#import "TGRTLScreenEdgePanGestureRecognizer.h"
@implementation TGRTLScreenEdgePanGestureRecognizer
- (CGPoint)translationInView:(UIView *)view
{
CGPoint result = [super translationInView:view];
result.x = -result.x;
return result;
}
- (CGPoint)velocityInView:(UIView *)view
{
CGPoint result = [super velocityInView:view];
result.x = -result.x;
return result;
}
@end