From 9f295fae352b077484a0ec712cf958d35e25ed92 Mon Sep 17 00:00:00 2001 From: HuanCheng65 <22636177+HuanCheng65@users.noreply.github.com> Date: Tue, 18 Jul 2023 23:12:34 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E7=9C=8B=E5=9B=BE=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=98=88=E5=80=BC=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tieba/post/interfaces/OnDispatchTouchEvent.java | 7 ------- .../tieba/post/ui/page/photoview/PhotoViewActivity.kt | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 app/src/main/java/com/huanchengfly/tieba/post/interfaces/OnDispatchTouchEvent.java diff --git a/app/src/main/java/com/huanchengfly/tieba/post/interfaces/OnDispatchTouchEvent.java b/app/src/main/java/com/huanchengfly/tieba/post/interfaces/OnDispatchTouchEvent.java deleted file mode 100644 index 9e44d5e3..00000000 --- a/app/src/main/java/com/huanchengfly/tieba/post/interfaces/OnDispatchTouchEvent.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.huanchengfly.tieba.post.interfaces; - -import android.view.MotionEvent; - -public interface OnDispatchTouchEvent { - void onDispatchTouchEvent(MotionEvent event); -} diff --git a/app/src/main/java/com/huanchengfly/tieba/post/ui/page/photoview/PhotoViewActivity.kt b/app/src/main/java/com/huanchengfly/tieba/post/ui/page/photoview/PhotoViewActivity.kt index 260cfb33..32e3c02d 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/ui/page/photoview/PhotoViewActivity.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/ui/page/photoview/PhotoViewActivity.kt @@ -215,7 +215,7 @@ class PhotoViewActivity : BaseComposeActivityWithParcelable() { modifier = Modifier.fillMaxSize(), onDrag = { dx, dy, isAtEdge -> val currentPage = pagerState.currentPage - if (abs(dy) < 15 && abs(dx) > 25 && isAtEdge) { + if (abs(dy) < 15 && abs(dx) > 30 && isAtEdge) { val prevPage = currentPage - 1 val nextPage = currentPage + 1 if (dx > 0 && prevPage >= 0) {