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 8a1de7ec2..e0ad02923 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 @@ -120,11 +120,11 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S } val viewWidth = width - val twentyPercent = viewWidth / 5 + val instantWidth = viewWidth / 7 val clickedX = e?.rawX ?: 0f when { - clickedX <= twentyPercent -> listener?.goToPrevItem() - clickedX >= viewWidth - twentyPercent -> listener?.goToNextItem() + clickedX <= instantWidth -> listener?.goToPrevItem() + clickedX >= viewWidth - instantWidth -> listener?.goToNextItem() else -> toggleFullscreen() } return true