Commit 7b4bdf31 authored by Felix Paul Kühne's avatar Felix Paul Kühne

playback: cosmetics

parent 3e908db3
......@@ -61,7 +61,6 @@
BOOL _isScrubbing;
BOOL _swipeGesturesEnabled;
NSString * panType;
UIPinchGestureRecognizer *_pinchRecognizer;
UIPanGestureRecognizer *_panRecognizer;
UISwipeGestureRecognizer *_swipeRecognizerLeft;
......@@ -1239,8 +1238,8 @@
- (NSString*)detectPanTypeForPan:(UIPanGestureRecognizer*)panRecognizer
{
NSString * type;
NSString * deviceType = [[UIDevice currentDevice] model];
NSString *type;
NSString *deviceType = [[UIDevice currentDevice] model];
type = @"Volume"; // default in case of error
CGPoint location = [panRecognizer locationInView:self.view];
CGFloat position = location.x;
......@@ -1272,6 +1271,7 @@
if (!_swipeGesturesEnabled)
return;
NSString *panType;
CGFloat panDirectionX = [panRecognizer velocityInView:self.view].x;
CGFloat panDirectionY = [panRecognizer velocityInView:self.view].y;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment