summaryrefslogtreecommitdiff
path: root/startop/scripts/lib/print_utils.py
diff options
context:
space:
mode:
authorPinyao Ting <pinyaoting@google.com>2020-07-15 16:33:02 -0700
committerPinyao Ting <pinyaoting@google.com>2020-07-16 20:59:10 -0700
commitb4444ff0a1876ba2e7926dfd9aa4e71d17de457d (patch)
tree442fcfdc6962ab5bc26912479d68753c2220e4fd /startop/scripts/lib/print_utils.py
parentf65210f9cad319d3e99320672e9eb36605c25851 (diff)
Fixes the issue multi-touch causing launcher icons to be not clickable.
The issue occurs because TextView#isFromPrimePointer assumes multi-touch events are happening on the same TextView and relies on ACTION_UP/ACTION_CANCEL to reset the Prime pointer id. consider following scenario: 1. ACTION_DOWN (pointer 0) landed on ViewA, ACTION_DOWN (pointer 1) landed on ViewB. 2. ACTION_MOVE landed on both ViewA and ViewB, triggering a drag. 3. When all fingers are released, ACTION_CANCEL (pointer 0) will be landed on both ViewA and ViewB, so the prime pointer in ViewB is not reset due to pointer index mismatch. This CL always reset prime pointer id whenever ACTION_UP/ACTION_CANCEL is triggered. Bug: 157399040 Test: manual Change-Id: Id35d9eac939378482fa50e85bb5cda58469240ad
Diffstat (limited to 'startop/scripts/lib/print_utils.py')
0 files changed, 0 insertions, 0 deletions