[Android] Use the same viewpoint change speed on both axis

Geoffrey Métais git at videolan.org
Thu Dec 8 12:00:05 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Dec  8 11:59:36 2016 +0100| [a68aa602f28330e97cc0fbc518cf55f12c9e5319] | committer: Geoffrey Métais

Use the same viewpoint change speed on both axis

> https://code.videolan.org/videolan/vlc-android/commit/a68aa602f28330e97cc0fbc518cf55f12c9e5319
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index fdff961..e248c87 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2118,7 +2118,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                     mTouchX = event.getRawX();
                     mTouchAction = TOUCH_MOVE;
                     float yaw = mFov * -x_changed/(float)mSurfaceXDisplayRange;
-                    float pitch = mFov * -y_changed/(float)mSurfaceYDisplayRange;
+                    float pitch = mFov * -y_changed/(float)mSurfaceXDisplayRange;
                     mService.updateViewpoint(yaw, pitch, 0, 0, false);
                 }
                 break;



More information about the Android mailing list