瀏覽代碼

playback: cosmetics

Felix Paul Kühne 10 年之前
父節點
當前提交
7b4bdf3108
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Sources/VLCMovieViewController.m

+ 3 - 3
Sources/VLCMovieViewController.m

@@ -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;