commit | a36b28e432b09dcdab69a7f28d66d55d0b5cc28b | [log] [tgz] |
---|---|---|
author | arthurhung <arthurhung@google.com> | Tue Dec 29 20:28:15 2020 +0800 |
committer | Arthur Hung <arthurhung@google.com> | Thu Jan 07 01:04:20 2021 +0000 |
tree | 4633fe826574841a6c039b7a6812033e527bd223 | |
parent | 57563a1020fefe9645e4d52a4a9d9ebdcab6d222 [diff] |
Fix coordinate error after rotation and scaling in TouchInputMapper The 'rotateAndScale' will transform raw coordinate into surface coordinate, but the raw (x, y) values range would be defined in RawPointerAxes, so we have to transform the raw event using the RawPointerAxes and the scaling ratio into surface coordinate, then calculate the offset by the surface frame. Test: atest inputflinger_test Bug: 176138152 Change-Id: I2d428fcbdc4bb879525754aafef05ebebbf131c5