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

Commit 44ecb9d7 authored by Vadim Tryshev's avatar Vadim Tryshev Committed by vadimt
Browse files

Fix swiping up to Overview in landscape mode

Bug: 121280703
Change-Id: I9802c6f547a592be891e7c4f5e8db8dadaa0425d
Tests: TaplTests, locally modified to force Landscape
parent d182943d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -344,7 +344,8 @@ public class TouchInteractionService extends Service {
                        startTouchTracking(ev, true /* updateLocationOffset */);
                        break;
                    case ACTION_MOVE: {
                        float displacement = ev.getY() - mDownPos.y;
                        float displacement = mActivity.getDeviceProfile().isLandscape ?
                                ev.getX() - mDownPos.x : ev.getY() - mDownPos.y;
                        if (Math.abs(displacement) >= mTouchSlop) {
                            // Start tracking only when mTouchSlop is crossed.
                            startTouchTracking(ev, true /* updateLocationOffset */);