Mac-precision-touchpad: Random mouse pointer movement

Created on 22 Jan 2020  ·  10Comments  ·  Source: imbushuo/mac-precision-touchpad

Pre-report checks

  • [ ] Have you checked (use search) Azure DevOps Board and Github issues for known bugs and plans?

Describe the bug
When attempting to click on any spot on the screen, the mouse pointer jumps up and to the left approximately 1 mouse pointer size lengths 3 times, before staying on the spot and clicking what I have selected. Ex. I am about to click a weblink, but the mouse moves up and to the left approximately the distance of the length of my mouse pointer, when I push to click, or tap to click. It does this 3 time, and seems like it jumps up and to the left in the exact same position each of the 3 times.

This occurs when I'm browsing the web, navigating through windows explorer, different apps on my PC.

To Reproduce
Random. About every hour or two hours, this issue occurs

Expected behavior
Click on the exact spot that I have placed the mouse pointer on to click on the screen.

Traces
n/a

Environment
Magic Trackpad 2, connected via USB to a port on my Keyboard, which is connected to a docking station for my desktop PC. Windows 10 1903 PC computer (not an Apple device)

bug

Most helpful comment

We are discussing about jitter elimination implementation with my friends, this should be done in the following months. I don't have a clear time frame at this moment though.

All 10 comments

Have same issue too

We are discussing about jitter elimination implementation with my friends, this should be done in the following months. I don't have a clear time frame at this moment though.

I have this issue too for several months now and I'd like to add my findings on this so far.

So sometimes it happens repeatedly like 3 times or so in a row. Furthermore, it's mostly in the center of the trackpad (MT2) but that could be a coincidence, as I'm probably more likely to click in that area.

However, what I'm pretty sure about by now is that it only happens with push to click... I've never noticed this with tap to click at all so far.

Ok I think I found the issue here and I'm able to reproduce quite well. At first I noticed that it happens on certain movement patterns, e.g. right-click opening a context menu, moving the pointer down a little and clicking on the first button. It also happens very often when trying to repeat the same thing (probably doesn't make sense now but it has to do with the fact that you're getting quicker at the movement).

Then it hit me... the pointer appeared to jump to the exact same spot it was before doing the small movement + clicking. I tried having a lookout and provoking it to happen a couple of times and indeed... it's always back to the same spot.

After playing around some more I noticed how you can reproduce this basically at will as long as you're quick enough:

  • remove the finger from the surface
  • touch the pad and swiftly move the pointer for a short distance or short time
  • click immediately without leaving the surface or stopping the movement before the click

Now I don't know what is more critical here... distance or time. But in order to trigger it, it has to happen very quickly after the movement has begun. The quicker you are the more likely the pointer will jump back. I can pretty much trigger it every time I'm focusing on it.

This leads me to believe that it's not entirely a random bug per se but probably has to do with the jitter elimination implementation mentioned above by @imbushuo. It's purpose is probably to avoid accidental clicks when you move your finger on the pad while clicking and it would explain why I can't trigger it when tapping... you lift your finger before the tap, thus stopping any prior pointer movement anyway. Or maybe I'm just too slow due to having to lift my finger before the tap.

Maybe you can release a test version without the jitter elimination on clicks (e.g. one that instead of triggering when you click during < certain distance or time limit one that is triggering after <0px or <0ms, so that it basically cannot be triggered and see what happens).

This is very bad issue because click can happen anywhere on screen! I can test beta version on macbook pro 15" late 2013.

Ok I think I found the issue here and I'm able to reproduce quite well. At first I noticed that it happens on certain movement patterns, e.g. right-click opening a context menu, moving the pointer down a little and clicking on the first button. It also happens very often when trying to repeat the same thing (probably doesn't make sense now but it has to do with the fact that you're getting quicker at the movement).

Then it hit me... the pointer appeared to jump to the exact same spot it was before doing the small movement + clicking. I tried having a lookout and provoking it to happen a couple of times and indeed... it's always back to the same spot.

After playing around some more I noticed how you can reproduce this basically at will as long as you're quick enough:

  • remove the finger from the surface
  • touch the pad and swiftly move the pointer for a short distance or short time
  • click immediately without leaving the surface or stopping the movement before the click

Now I don't know what is more critical here... distance or time. But in order to trigger it, it has to happen very quickly after the movement has begun. The quicker you are the more likely the pointer will jump back. I can pretty much trigger it every time I'm focusing on it.

This leads me to believe that it's not entirely a random bug per se but probably has to do with the jitter elimination implementation mentioned above by @imbushuo. It's purpose is probably to avoid accidental clicks when you move your finger on the pad while clicking and it would explain why I can't trigger it when tapping... you lift your finger before the tap, thus stopping any prior pointer movement anyway. Or maybe I'm just too slow due to having to lift my finger before the tap.

Maybe you can release a test version without the jitter elimination on clicks (e.g. one that instead of triggering when you click during < certain distance or time limit one that is triggering after <0px or <0ms, so that it basically cannot be triggered and see what happens).

I can confirm! (hard) Clicking after moving the cursor in a very short period of time will reproduce the issue.

Sijie Bu (a friend of mine) is currently working on a fix for that.

Get Outlook for iOShttps://aka.ms/o0ukef


From: pd90506 notifications@github.com
Sent: Saturday, May 23, 2020 1:30:06 PM
To: imbushuo/mac-precision-touchpad mac-precision-touchpad@noreply.github.com
Cc: Bingxing Wang i@imbushuo.net; Mention mention@noreply.github.com
Subject: Re: [imbushuo/mac-precision-touchpad] Random mouse pointer movement (#261)

Ok I think I found the issue here and I'm able to reproduce quite well. At first I noticed that it happens on certain movement patterns, e.g. right-click opening a context menu, moving the pointer down a little and clicking on the first button. It also happens very often when trying to repeat the same thing (probably doesn't make sense now but it has to do with the fact that you're getting quicker at the movement).

Then it hit me... the pointer appeared to jump to the exact same spot it was before doing the small movement + clicking. I tried having a lookout and provoking it to happen a couple of times and indeed... it's always back to the same spot.

After playing around some more I noticed how you can reproduce this basically at will as long as you're quick enough:

  • remove the finger from the surface
  • touch the pad and swiftly move the pointer for a short distance or short time
  • click immediately without leaving the surface or stopping the movement before the click

Now I don't know what is more critical here... distance or time. But in order to trigger it, it has to happen very quickly after the movement has begun. The quicker you are the more likely the pointer will jump back. I can pretty much trigger it every time I'm focusing on it.

This leads me to believe that it's not entirely a random bug per se but probably has to do with the jitter elimination implementation mentioned above by @imbushuohttps://github.com/imbushuo. It's purpose is probably to avoid accidental clicks when you move your finger on the pad while clicking and it would explain why I can't trigger it when tapping... you lift your finger before the tap, thus stopping any prior pointer movement anyway. Or maybe I'm just too slow due to having to lift my finger before the tap.

Maybe you can release a test version without the jitter elimination on clicks (e.g. one that instead of triggering when you click during < certain distance or time limit one that is triggering after <0px or <0ms, so that it basically cannot be triggered and see what happens).

I can confirm! (hard) Clicking after moving the cursor in a very short period of time will reproduce the issue.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/imbushuo/mac-precision-touchpad/issues/261#issuecomment-633101329, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABP6IQOCIWRGRA3EQHZVSLDRTABZ5ANCNFSM4KKIVSCA.

Ok I think I found the issue here and I'm able to reproduce quite well. At first I noticed that it happens on certain movement patterns, e.g. right-click opening a context menu, moving the pointer down a little and clicking on the first button. It also happens very often when trying to repeat the same thing (probably doesn't make sense now but it has to do with the fact that you're getting quicker at the movement).

Then it hit me... the pointer appeared to jump to the exact same spot it was before doing the small movement + clicking. I tried having a lookout and provoking it to happen a couple of times and indeed... it's always back to the same spot.

After playing around some more I noticed how you can reproduce this basically at will as long as you're quick enough:

  • remove the finger from the surface
  • touch the pad and swiftly move the pointer for a short distance or short time
  • click immediately without leaving the surface or stopping the movement before the click

Now I don't know what is more critical here... distance or time. But in order to trigger it, it has to happen very quickly after the movement has begun. The quicker you are the more likely the pointer will jump back. I can pretty much trigger it every time I'm focusing on it.

This leads me to believe that it's not entirely a random bug per se but probably has to do with the jitter elimination implementation mentioned above by @imbushuo. It's purpose is probably to avoid accidental clicks when you move your finger on the pad while clicking and it would explain why I can't trigger it when tapping... you lift your finger before the tap, thus stopping any prior pointer movement anyway. Or maybe I'm just too slow due to having to lift my finger before the tap.

Maybe you can release a test version without the jitter elimination on clicks (e.g. one that instead of triggering when you click during < certain distance or time limit one that is triggering after <0px or <0ms, so that it basically cannot be triggered and see what happens).

This is really accurate! Kudos

Sijie Bu (a friend of mine) is currently working on a fix for that. Get Outlook for iOShttps://aka.ms/o0ukef

Sounds heavenly 🙏 I think if this combined with the phantom touch being fixed it will be fixed automatically. As I think the phantom touch makes it register an early movement which is why it jitter jumps to where the other finger is placed

Just installed the new release and if I'm not mistaken... I cannot reproduce this anymore. :)

Edit: oops wrong, it still happens, I just forgot that it only happens on clicks and not on taps.

Any updates to this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

duanyu47 picture duanyu47  ·  4Comments

hanseytrackpad picture hanseytrackpad  ·  3Comments

seanho12345 picture seanho12345  ·  8Comments

chaopeng picture chaopeng  ·  6Comments

jourdant picture jourdant  ·  3Comments