On Tue, Feb 07, 2023 at 10:07:56PM +0100, Ulf Brosziewski wrote:
> I wouldn't mind seeing such a feature in the driver, but I think there's more
> to do than counting contacts. The start of a click-and-drag gesture may 
> involve
> two contacts and a button-press event, or people who place a thumb in the 
> lower
> clickpad area and use it for pressing the clickpad button might leave the 
> index
> finger in the main area. In both cases you probably shouldn't generate a 
> middle-
> button event, and I guess it doesn't happen on MacOS, or does it?
> 
> There may be various means to distinguish the gestures. The driver might check
> the positions and the distance of the contacts, or identify their duration,
> their initial position or the current direction and speed of movement, etc.
> 
> I don't know which strategies work well and can be implemented with reasonable
> effort, it might not be easy to figure that out. It seems that libinput uses
> distances (see
>   
> https://wayland.freedesktop.org/libinput/doc/1.22.0/clickpad-softbuttons.html
> ) as well as additional means for identifying "thumbs", but I'm not familiar
> with the details.

Sounds like this good be something one could improve upon in-tree?  The
diff already feels much better than the current default.

Cheers,
Patrick

Reply via email to