gtkeventcontrollerscroll: Handle hold gestures
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 28 Jun 2021 15:48:04 +0000 (17:48 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 26 Jan 2022 21:49:53 +0000 (22:49 +0100)
commitf09338c8ded26ecb620937b4a10e59614460a065
tree7c19f8ca489a2122a9387dec2e2ae6a2d80b10a2
parentec91b2de100b966d6111497f0455d9e336944ed5
gtkeventcontrollerscroll: Handle hold gestures

Handle hold events:

 - GDK_TOUCHPAD_GESTURE_PHASE_BEGIN: scroll-begin is emitted.
 - GDK_TOUCHPAD_GESTURE_PHASE_END: A hold gesture ends only when all
   fingers are lifted from the touchpad without movement, so
   scroll-end is emitted right away.
 - GDK_TOUCHPAD_GESTURE_PHASE_CANCEL: A hold gesture is cancelled when
   some fingers are lifted/put down or movement is detected. In this
   case, scroll-end is emitted after a small timeout only if
   GDK_SCROLL wasn't detected.

Part-of: <!3454>
gtk/gtkeventcontrollerscroll.c