Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1ce9e365 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Use DecayAnimationSpec to animate to SwipeAnimation targetOffset

This CL makes SwipeAnimation.animateOffset() to use a DecaySpecAnimation
rather than a normal target animation after releasing a drag gesture
if the decay animation is enough to get to the target offset. This makes
the animation consume less velocity and makes the transition overscroll
behave more consistently w.r.t. overscrolling after a nested scrollable
is flung.

Bug: 378470603
Test: atest PlatformComposeSceneTransitionLayoutTests
Flag: com.android.systemui.scene_container
Change-Id: I38152f770942bf04cad57f3d98acd971ebe63d4d
parent bc25f13a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment