summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Susan Lin <susalin@amazon.com> 2024-02-01 22:25:13 +0000
committer susalin <susalin@amazon.com> 2024-02-26 17:40:30 +0000
commit36daebd7c76873f9157718db658bb0d6a2bb4e48 (patch)
tree1d706e9034dc46753218053eb2009338b5bcb8da /libs/androidfw/misc.cpp
parente0343f2c79536a1f2a1bf9ee614c98cb74d47104 (diff)
Correctly Set Primary Pointer in TouchState
Previously, the primary pointer was always set to the most recent pointer down. That is not the expected behavior, as the primary pointer is meant to be the pointer that has been down the longest. This change fixes this so that when a new pointer goes down, the primary pointer is only changed if it is the start of a new pressed gesture. Test: Manual Steps: 1. Run `adb shell setprop log.tag.TouchExplorer DEBUG` to enable TouchExplorer Logs. Restart your device. 2. Install a 3P A11y Service that has Touch Exploration Enabled. 3. Now run `adb logcat | grep "ReceivedPointerTracker”`. 4. Place multiple fingers on the screen and then lift the first one. Note that the `Primary Pointer` is set to the pointer that has been there the longest (not the most recent). Change-Id: Ie05f0aa3da90250327d56f08a347231a4e743b2c
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions