Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit e368716c8815d47d1034738cb678deebee97fbf0
Author: Matvei Malkov <malkov@google.com>
Date: Thu Mar 11 15:22:38 2021
Call FlingBehavior.performFling() even if there's no velocity (0f), since it's technically feasible to fling as well for custom behaviours
To unlock viewpager like and other cases we have to call performFling even if there's no velocity
Relnote: FlingBehavior.performFling() is now called even when velocity is 0
Fixes: 181237123
Test: added
Change-Id: I0b6e5934c646494c1b96340c0f9822d28b9cd2c2
M compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/ScrollableTest.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/gestures/Scrollable.kt
https://android-review.googlesource.com/1628586
Branch: androidx-main
commit e368716c8815d47d1034738cb678deebee97fbf0
Author: Matvei Malkov <malkov@google.com>
Date: Thu Mar 11 15:22:38 2021
Call FlingBehavior.performFling() even if there's no velocity (0f), since it's technically feasible to fling as well for custom behaviours
To unlock viewpager like and other cases we have to call performFling even if there's no velocity
Relnote: FlingBehavior.performFling() is now called even when velocity is 0
Fixes: 181237123
Test: added
Change-Id: I0b6e5934c646494c1b96340c0f9822d28b9cd2c2
M compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/ScrollableTest.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/gestures/Scrollable.kt
Description
I'm trying to implement a pager and I need the here , if there is no fling velocity (absolute velocity is less than 1, technically),
performFling()
function to be always called in order to snap to a page when a scroll ends. Currently, as shownperformFling()
won't be called.