diff options
author | 2020-04-30 17:55:40 +0800 | |
---|---|---|
committer | 2020-07-21 09:43:12 +0800 | |
commit | cc7f98045f3b64af894c9454ca536e7e9d19c18c (patch) | |
tree | 6032169b45d112b764b559b3de21eaacd86062f0 /libs/input/InputWindow.cpp | |
parent | af1156a3606409c1a395900deba27a90762b0e8a (diff) |
Allow touch if some pointers are MT_TOOL_PALM
We would cancel all touch when we recevied MT_TOOL_PALM because it
becomes accidental touch, and that would break user gesture when
another non-palm pointer is still active.
- Send ACTION_POINTER_UP with AKEY_EVENT_FLAG_CANCELED when recevie
MT_TOOL_PALM if at least 2 pointers are active.
- Send ACTION_CANEL when receive MT_TOOL_PALM if only one pointer.
- Add test caseis for touch cancel scenarios, to test it would keep
dispatching non-palm event.
Test: atest inputflinger_tests
Bug: 137221719
Change-Id: Ife35a692c71e45159bfcc771317dff47fa764dda
Diffstat (limited to 'libs/input/InputWindow.cpp')
0 files changed, 0 insertions, 0 deletions