Configuring tap to click timeout (DEFAULT_TAP_TIMEOUT_PERIOD constant)
Would love to be able to change the tap to click timeout without having to edit source code and recompile libinput.
Right now there is a constant that determines the time a tap has before it is released so that it counts as a click. It's defined here: https://gitlab.freedesktop.org/libinput/libinput/blob/master/src/evdev-mt-touchpad-tap.c#L35
It's hardcoded to 180ms, which is a fairly generous value. On other platforms (macOS/Windows), the tap to click timeout feels closer to 100-150ms. The result is when you try to tap to click, there is a noticeable "lag" before the click is registered.
Would be great if libinput consumers could easily override this timeout in a config.
Implementation in Other Systems
- mtrack has
MaxTapTimewhich defaults to 120ms: https://github.com/p2rkw/xf86-input-mtrack#MaxTapTime
- synaptics also has
MaxTapTimebut unsure of the default (maybe 180ms?).