mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Fix some visual bugs
- Workspace was translating while swiping from overview to all apps - VerticalSwipeController progress jumped a bit backwards when flinging because sign wasn't taken into account for velocity Change-Id: Ife5e9d87ca9f0b3429dd9045c6569868a65eb0af
This commit is contained in:
@@ -259,7 +259,7 @@ public abstract class VerticalSwipeController extends AnimatorListenerAdapter
|
||||
});
|
||||
|
||||
float nextFrameProgress = Utilities.boundToRange(
|
||||
progress + velocity * SINGLE_FRAME_MS / getShiftRange(), 0f, 1f);
|
||||
progress + velocity * SINGLE_FRAME_MS * mProgressMultiplier, 0f, 1f);
|
||||
|
||||
ValueAnimator anim = mCurrentAnimation.getAnimationPlayer();
|
||||
anim.setFloatValues(nextFrameProgress, targetState == mToState ? 1f : 0f);
|
||||
|
||||
Reference in New Issue
Block a user