Reviewed-on: 2022-10-13
The one finger button recognizer detects a click or a click-drag on the touchpad.
A click occurs when the user exerts enough force on the touchpad to move the pad itself then release the button. (This is distinct from a tap, which does not move the pad.)
A one finger drag occurs when the user exerts enough force on the touchpad to move the pad itself to trigger the button then move the finger more than threshold.
Notably, this includes discarding any spurious motion that occurs during the click (when a button has been pressed but not yet released).
The one finger button recognizer implements the state machine below.
The state machine is also available in other formats: