lxy 1 年之前
父节点
当前提交
d6282e469a
共有 1 个文件被更改,包括 20 次插入4 次删除
  1. 20 4
      LenzCameraNativeModuleForRN/Classes/inner/PCSBaseViewController/PCSBaseViewController.m

+ 20 - 4
LenzCameraNativeModuleForRN/Classes/inner/PCSBaseViewController/PCSBaseViewController.m

@@ -3042,13 +3042,29 @@
             }
             LenVideoStitchDirction dirction = LenVideoStitchDirctionLeft;
             if (self.panoramOrientationGuideView.selectedItemIndex == PanoramaOrientationViewUp) {
-                dirction = LenVideoStitchDirctionUp;
+                if (self.currentTgDirection == TgDirectionDown) {
+                    dirction = LenVideoStitchDirctionDown;
+                } else {
+                    dirction = LenVideoStitchDirctionUp;
+                }
             } else if (self.panoramOrientationGuideView.selectedItemIndex == PanoramaOrientationViewDown) {
-                dirction = LenVideoStitchDirctionDown;
+                if (self.currentTgDirection == TgDirectionDown) {
+                    dirction = LenVideoStitchDirctionUp;
+                } else {
+                    dirction = LenVideoStitchDirctionDown;
+                }
             } else if (self.panoramOrientationGuideView.selectedItemIndex == PanoramaOrientationViewLeft) {
-                dirction = LenVideoStitchDirctionLeft;
+                if (self.currentTgDirection == TgDirectionDown) {
+                    dirction = LenVideoStitchDirctionRight;
+                } else {
+                    dirction = LenVideoStitchDirctionLeft;
+                }
             } else if (self.panoramOrientationGuideView.selectedItemIndex == PanoramaOrientationViewRight) {
-                dirction = LenVideoStitchDirctionRight;
+                if (self.currentTgDirection == TgDirectionDown) {
+                    dirction = LenVideoStitchDirctionLeft;
+                } else {
+                    dirction = LenVideoStitchDirctionRight;
+                }
             } else {
                 dirction = LenVideoStitchDirctionAny;
             }