Disallow scrolling if workspace is in transition.

Because going to overview mode scales down the workspace, it was
thinking the touch was moving even though your finger was still. If
the "movement" was large enough, it was treated as a scroll, causing
jank. This was especially prevalent on tablets due to their size.

Bug: 25779718
Change-Id: Idb7833e0087bd24ca840f6afc451bf221f6bc047
This commit is contained in:
Tony Wickham
2015-11-19 12:45:30 -08:00
parent a43f78fc4b
commit a5209e33fc
2 changed files with 10 additions and 3 deletions
@@ -641,11 +641,11 @@ public class LauncherStateTransitionAnimation {
}
animation.play(reveal);
}
dispatchOnLauncherTransitionPrepare(fromView, animated, true);
dispatchOnLauncherTransitionPrepare(toView, animated, true);
}
dispatchOnLauncherTransitionPrepare(fromView, animated, true);
dispatchOnLauncherTransitionPrepare(toView, animated, true);
animation.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {