Pager swipe fling improv
This commit is contained in:
parent
b01eb151f8
commit
883c372315
@ -281,7 +281,12 @@ fun PagerScaffold(
|
||||
}
|
||||
|
||||
override suspend fun onPreFling(available: Velocity): Velocity {
|
||||
if (!isWidgetEditMode) gestureManager.dispatchDragEnd()
|
||||
val drag = gestureManager.currentDrag
|
||||
if (drag != null && (drag.y > 0 || (reverse && drag.x < 0 || !reverse && drag.x > 0))) {
|
||||
gestureManager.dispatchDragEnd()
|
||||
return available
|
||||
}
|
||||
gestureManager.dispatchDragEnd()
|
||||
return super.onPreFling(available)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user