gestures: fix disambiguation between two finger pinch and scroll
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 24 Jan 2022 17:55:20 +0000 (18:55 +0100)
committerJosé Expósito <jose.exposito89@gmail.com>
Thu, 27 Jan 2022 07:35:30 +0000 (08:35 +0100)
commit8f533776803e8a573df5f6b02006bb0438856e78
treedac40af2cbeb0d1735540c3570ba727c6960b1b4
parente9aba30a783a3db61562a3319a41d8de579ba0ef
gestures: fix disambiguation between two finger pinch and scroll

The changes introduced in b5b6f835af2e99b6a4e64fb0174ab551ed141763 to
add support for hold gestures introduced a regression:

The mechanism that was in place to improve the disambiguation between
two finger pinch and scroll during the beginning of the gesture stopped
working and instead a bug warning was printed on the log.

Fix the regression by allowing to go from the scroll state to the pinch
state.

Fix #726

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
src/evdev-mt-touchpad-gestures.c