mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-11 18:36:06 +00:00
Created logger with log levels
This commit is contained in:
@@ -1140,7 +1140,7 @@ const int FrontViewPositionNone = 0xff;
|
||||
// forbid gesture if the initial translation is not horizontal
|
||||
UIView *recognizerView = _panGestureRecognizer.view;
|
||||
CGPoint translation = [_panGestureRecognizer translationInView:recognizerView];
|
||||
// NSLog( @"translation:%@", NSStringFromCGPoint(translation) );
|
||||
// Log(LOG_D, @"translation:%@", NSStringFromCGPoint(translation) );
|
||||
// if ( fabs(translation.y/translation.x) > 1 )
|
||||
// return NO;
|
||||
|
||||
@@ -1252,7 +1252,7 @@ const int FrontViewPositionNone = 0xff;
|
||||
|
||||
CGFloat xLocation = frontView.frame.origin.x;
|
||||
CGFloat velocity = [recognizer velocityInView:_contentView].x;
|
||||
//NSLog( @"Velocity:%1.4f", velocity);
|
||||
//Log(LOG_D, @"Velocity:%1.4f", velocity);
|
||||
|
||||
// depending on position we compute a simetric replacement of widths and positions
|
||||
int symetry = xLocation<0 ? -1 : 1;
|
||||
|
||||
Reference in New Issue
Block a user