Fix swiping up to Overview in landscape mode
Bug: 121280703 Change-Id: I9802c6f547a592be891e7c4f5e8db8dadaa0425d Tests: TaplTests, locally modified to force Landscape
This commit is contained in:
parent
d182943d3d
commit
44ecb9d7cb
|
@ -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 */);
|
||||
|
|
Loading…
Reference in New Issue