lxy 1 éve
szülő
commit
d6282e469a

+ 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;
             }