JitouchApp / Jitouch

A multi-touch extension for MacBook, Magic Mouse, and Magic Trackpad
GNU General Public License v3.0
391 stars 28 forks source link

[Magic Mouse] Middle Click triggered unexpectedly #53

Open skaiteo opened 1 year ago

skaiteo commented 1 year ago

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.

aaronkollasch commented 1 year ago

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