JitouchApp / Jitouch

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

monterey 12.3, cursor jumps while typing with three-finger tap enabled #18

Open lottetap opened 2 years ago

lottetap commented 2 years ago

I'm currently using monterey 12.3 although this issue existed for me on 12.2 as well. I'm on a macbook pro 14" using just the trackpad. I currently only utilize the three-finger tap -> middle click gesture.

With this enabled, when I'm typing in some apps - namely VSCode, the cursor will jump while typing. My suspicion is that there is some kind of conflict with palm rejection. I tried turning off the middle click gesture and enabling the other gestures instead and the problem goes away. The problem also goes away if I completely disable Jitouch. I've also seen the problem when coding in a Chrome browser window of leetcode.

What's interesting is that on Notes, when typing I can see the cursor blink on another spot on the screen but the cursor does not move away from the intended spot. Again this only occurs when I have the three-finger tap enabled.

gregmichael commented 2 years ago

Having jump issues as well, inadvertent click

aaronkollasch commented 2 years ago

I think these jump/lag issues are related (#20). There could be a hang within a callback function in an EventTap. I've found with #5 that an extended hang causes UI issues where the cursor looks like it moves but internally it hasn't moved, and it resets to a single spot every so often. I have an idea on how to fix #20 and perhaps that will fix this issue as well.

However, I can't get this issue to reproduce in VSCode - my cursor just hides when I'm typing, three-finger-tap enabled or not. Is there a procedure I can try to reproduce this?

aaronkollasch commented 2 years ago

I do think better palm rejection may be necessary, as this program was written when the trackpad was much smaller. I've experienced some jumping or inadvertent gestures when typing, sometimes when my palm just grazes the trackpad – but it is hard to reproduce.

aaronkollasch commented 2 years ago

Have you tried the latest beta release? (https://github.com/aaronkollasch/jitouch/releases/tag/v2.82-beta.2) Compared to March, it includes two fixes (#22, #33) that may also fix the inadvertent clicks and mouse jumps (due to left-click being held down incorrectly) you've observed.

karlhorky commented 11 months ago

For anyone looking for 3-finger middle-click on Magic Mouse, there are other options too: