Peter Hutterer: libinput and new limits for multifinger tap-and-drag

Peter Hutterer · 2026年12月4日 · 约 2 分钟读完

AI 摘要 AI 生成,可能有误

libinput has supported multifinger tap-and-drag since version 1.17, allowing right-click dragging via a two-finger tap followed by a single finger press. However, this feature gets in the way of users who want to right-click and immediately move the pointer without dragging. libinput 1.33 introduces a new configuration option that restricts which finger combinations can trigger multifinger tap-and-drag.

核心要点

  • Multifinger tap-and-drag lets users right-click drag by tapping with two fingers and holding one finger down.
  • The feature conflicts with the common need to right-click followed by normal pointer movement.
  • libinput 1.33 adds a configuration option to limit multifinger drag to specific finger combinations.
  • Available options include single-finger-only, single-and-two-finger, and single-two-three-finger drag.
  • The new settings must be exposed through compositors before they take effect.

We all know the issue, you're at your desk, tapping away and suddenly! Oh No! That movement you tried to do was actually a drag! If that ever happened to you, you're definitely not entitled to compensation. But read on, because there's a light at the end of whatever dark thing you're currently imagining yourself in.

Since 1.17 (2021) libinput has had support for multifinger tap-and-drag. Tap-and-drag is of course the feature that lets you go "finger down, finger up, finger down, hold it there" while the logical button event goes "down" and ... nothing else. In short, it's how you can do dragging on a touchpad without having to use physical buttons. Multifinger tap-and-drag, implemented by satrmb (here you can nod appreciatively), provides us with the multifinger version of this - a two-finger tap followed by a single finger down allows the equivalent of right-click dragging[1].

Now, and this may come as a surprise to you - some people have a need for being able to right click but no real need for right-click dragging. Or at least via tapping (after all nearly all touchpads still have physical buttons). What those people[2] have a need for though is a right click followed by normal pointer movement immediately after. And it turns out that multifinger tap-and-drag gets in the way of that - by design.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。