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

Commit a5209e33 authored by Tony Wickham's avatar Tony Wickham
Browse files

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
parent a43f78fc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -641,10 +641,10 @@ public class LauncherStateTransitionAnimation {
                    }
                    animation.play(reveal);
                }
            }

            dispatchOnLauncherTransitionPrepare(fromView, animated, true);
            dispatchOnLauncherTransitionPrepare(toView, animated, true);
            }

            animation.addListener(new AnimatorListenerAdapter() {
                @Override
+7 −0
Original line number Diff line number Diff line
@@ -1543,6 +1543,13 @@ public class Workspace extends PagedView
        mWallpaperOffset.syncWithScroll();
    }

    @Override
    protected void determineScrollingStart(MotionEvent ev, float touchSlopScale) {
        if (!isSwitchingState()) {
            super.determineScrollingStart(ev, touchSlopScale);
        }
    }

    @Override
    public void announceForAccessibility(CharSequence text) {
        // Don't announce if apps is on top of us.