jitouch icon indicating copy to clipboard operation
jitouch copied to clipboard

[Magic Mouse] Middle Click triggered unexpectedly

Open skaiteo opened this issue 1 year ago • 1 comments

As far as I understand, the Middle Click gesture on the Magic Mouse is triggered when we click with two fingers close together. However, I've discovered that clicking with one finger somewhere near the middle (horizontally) and another somewhere near the top center-to-right of the mouse would also trigger this behaviour. I'm not exactly sure what are the conditions, but here are some images of the spots I could reliably trigger the Middle Click gesture:

image image image
image image image

I first noticed this when it kept triggering the Middle Click gesture when I just wanted to do a normal click. Apparently my thumb was contacting the left side of the mouse and I clicked in the middle of the mouse (picture 1), triggering the gesture accidentally. Hope this helps in identifying the cause of the issue.

skaiteo avatar Dec 14 '22 06:12 skaiteo

Thanks for reporting @skaiteo,

I'll get to this when I can, though I don't have a Magic Mouse with me, so I'll have to look at the code alone. Thanks for sending the images.

The issue is probably in gestureMagicMouseMiddleClick: https://github.com/aaronkollasch/jitouch/blob/299af2b382e103ba3abd673883ffe6c056cf55b8/jitouch/Jitouch/Gesture.m#L2653-L2657

aaronkollasch avatar Dec 16 '22 03:12 aaronkollasch