Pager swipe fling improv
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user