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

Commit f7e02c37 authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez
Browse files

Scale snapback velocity by the magnetic multipliers.

When swiping and cancelling a drag on a swiped notificaiton, the
final velocity of the interaction is used to trigger the snap-back
animation for its magnetic neighbors. The velocity is multiplied by the
same magnetic pull factor that controls the translation as notifications
are being dragged. This significantly reduces the wobble observed when
rapidly swiping a notification away.

Test: manual. Verified reduced wobble in neighbor notifications.
Flag: com.android.systemui.magnetic_notification_swipes
Bug: 395893020
Change-Id: I5a7de2734abc708dd85050ce7b38f7a6f7cd5694
parent 90db7a62
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