Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 195c5f80 authored by Harry Cutts's avatar Harry Cutts
Browse files

Touchpad: correct HardwareState::touch_cnt for palms

The palm filtering logic previously only reduced the
HardwareState::finger_cnt field when the touchpad had identified palms,
not touch_cnt. I suspect that this was leading the Gestures library to
go into T5R2 mode (for touchpads that sometimes report more touches than
they can track), meaning that palms sometimes caused tap-to-clicks. I
can't reproduce this exact issue myself, but correcting this
inconsistency is good to do anyway.

Bug: 275616121
Test: atest inputflinger_tests:HardwareStateConverterTest
Test: check debug logs to verify palms don't cause touch_cnt to increase
Change-Id: Ic7b22864214351875afe9969fdbaab42db9d7877
parent f30d7a20
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment