We still use special-purpose typedefs in the gesture code for symmetry with other gesture callbacks. Fixes #1827