pref: 看图切换页面阈值微调
This commit is contained in:
parent
e5f4654e3e
commit
9f295fae35
|
|
@ -1,7 +0,0 @@
|
|||
package com.huanchengfly.tieba.post.interfaces;
|
||||
|
||||
import android.view.MotionEvent;
|
||||
|
||||
public interface OnDispatchTouchEvent {
|
||||
void onDispatchTouchEvent(MotionEvent event);
|
||||
}
|
||||
|
|
@ -215,7 +215,7 @@ class PhotoViewActivity : BaseComposeActivityWithParcelable<PhotoViewData>() {
|
|||
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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue