Skip to content

WIP: add "hold" gestures

Peter Hutterer requested to merge whot/libinput:wip/hold-gestures into main

SUPERSEDED by !602 (merged)

Hold gestures are notifications about fingers on the touchpad. There is no coordinate attached to a hold gesture, merely the number of fingers. A hold gesture starts when the user places a finger on the touchpad and ends when all fingers are lifted. it is cancelled when the finger(s) move past applicable thresholds and trigger some other interaction like pointer movement or scrolling.

Hold gestures are primarily designed for two interactions:

  • stopping a kinetic scroll sequence
  • hold-to-click - pop up a menu or execute an action while holding still

This MR is the initial draft, it's just the documentation for now and no code, largely because the interactions with tapping, etc. are a bit iffy.

Feedback appreciated.

Fixes #300 (closed)

cc @jadahl, @carlosg, @pq, @emersion, @daniels, @rhendric, @mdmayfield

Known issues:

  • adding hold gestures makes the CAP_GESTURE effectively useless as any device can now do gestures
Edited by Peter Hutterer

Merge request reports