diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt index 454269e4c..c9a1e29f0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt @@ -466,6 +466,10 @@ class PhotoFragment : ViewPagerFragment() { val sideElementWidth = curWidth - screenWidth val adapter = PortraitPhotosAdapter(context!!, paths, sideElementWidth) { position, x -> + if (mIsFullscreen) { + return@PortraitPhotosAdapter + } + mView.photo_portrait_stripe.smoothScrollBy((x + itemWidth / 2) - screenWidth / 2, 0) if (paths[position] != mCurrentPortraitPhotoPath) { mCurrentPortraitPhotoPath = paths[position]