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

Commit 35175503 authored by Vadim Tryshev's avatar Vadim Tryshev Committed by Android (Google) Code Review
Browse files

Merge "Starting measuring displacement from the edge of the slop zone" into main

parents c5be03f0 717ea2cd
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -154,6 +154,7 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
        mSquaredTouchSlop = mDeviceState.getSquaredTouchSlop();

        mPassedPilferInputSlop = mPassedWindowMoveSlop = continuingPreviousGesture;
        mStartDisplacement = continuingPreviousGesture ? 0 : -mTouchSlop;
        mDisableHorizontalSwipe = !mPassedPilferInputSlop && disableHorizontalSwipe;
        mRotationTouchHelper = mDeviceState.getRotationTouchHelper();
    }
@@ -280,7 +281,7 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
                        if (mGestureState.isTrackpadGesture() || Math.abs(displacement)
                                > mTouchSlop) {
                            mPassedWindowMoveSlop = true;
                            mStartDisplacement = Math.min(displacement, -mTouchSlop);
                            mStartDisplacement = -mTouchSlop;
                        }
                    }
                }
@@ -336,7 +337,7 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
                        }
                        if (!mPassedWindowMoveSlop) {
                            mPassedWindowMoveSlop = true;
                            mStartDisplacement = Math.min(displacement, -mTouchSlop);
                            mStartDisplacement = -mTouchSlop;
                        }
                        notifyGestureStarted(isLikelyToStartNewTask);
                    }