summaryrefslogtreecommitdiff
path: root/opengl/libagl/array.cpp
diff options
context:
space:
mode:
author Arthur Hung <arthurhung@google.com> 2020-03-16 15:39:59 +0800
committer Arthur Hung <arthurhung@google.com> 2020-03-31 16:28:32 +0800
commit4197f6b96f55d3c9d6fe2365be4c4ffcb49e9a7e (patch)
tree92d62a5221f5e49d9f20aad95ceba6b110f14742 /opengl/libagl/array.cpp
parent6aa156cad417719c6ed9b84a8ed04e5ab7a2bc31 (diff)
Fix tap is wrong in landscape with cutout disabled
The coordinate values in TouchInputMapper and raw events should be orientation-independent, we should not rotate the raw events while checking the range. And it should start from the current logcial right/bottom instead of the original right/bottom when it needs to reverse the coordinate. - Let 'rotateAndScale' could transform raw coordinate to surface. - Range checking should only base on natural orientation. - Change the test case to be more robust and could test 90 and 270 degrees cases. Bug: 138708005 Test: atest inputflinger_tests Test: open foldable emulator, change to minimized state and rotate device, test touch. Test: let device has display offset, rotate device and check touch. Change-Id: I945e489866bc41b5c14ed4a143952bc85248b3e9
Diffstat (limited to 'opengl/libagl/array.cpp')
0 files changed, 0 insertions, 0 deletions