diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt index 0628708ee..8ff3686ef 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt @@ -808,7 +808,7 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen } mRight = width * mSaveScale - width - mBottom = video_surface.height * mSaveScale - height + mBottom = height * mSaveScale - height if (0 <= width || 0 <= height) { mMatrix.postScale(scaleFactor, scaleFactor, detector.focusX, detector.focusY) if (scaleFactor < 1) { diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt index 4005a52c8..01e626289 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt @@ -792,7 +792,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S } mRight = width * mSaveScale - width - mBottom = mTextureView.height * mSaveScale - height + mBottom = height * mSaveScale - height if (0 <= width || 0 <= height) { mMatrix.postScale(scaleFactor, scaleFactor, detector.focusX, detector.focusY) if (scaleFactor < 1) {