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) {