mac-precision-touchpad icon indicating copy to clipboard operation
mac-precision-touchpad copied to clipboard

Random mouse pointer movement

Open tigersfa8 opened this issue 5 years ago • 12 comments

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)

AB#707

tigersfa8 avatar Jan 22 '20 16:01 tigersfa8

Have same issue too

reznikartem avatar Jan 22 '20 17:01 reznikartem

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.

imbushuo avatar Jan 23 '20 05:01 imbushuo

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.

cari66ean avatar Mar 29 '20 15:03 cari66ean

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).

cari66ean avatar Mar 29 '20 22:03 cari66ean

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

squalsoft avatar Apr 22 '20 14:04 squalsoft

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.

pd90506 avatar May 23 '20 17:05 pd90506

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

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


From: pd90506 [email protected] Sent: Saturday, May 23, 2020 1:30:06 PM To: imbushuo/mac-precision-touchpad [email protected] Cc: Bingxing Wang [email protected]; Mention [email protected] 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.

imbushuo avatar May 24 '20 04:05 imbushuo

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

omegamalkior avatar Jul 12 '20 21:07 omegamalkior

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.

cari66ean avatar Sep 10 '20 15:09 cari66ean

Any updates to this?

prakharb5 avatar Jan 05 '21 11:01 prakharb5

I have this issue, too. I think it's related to another issue. I just posted to https://github.com/imbushuo/mac-precision-touchpad/issues/375

I think it has something to do with the slight fog/condensation that appears on the trackpad around the finger/s (or under the fingers when slightly hovering).

Thanks @cari66ean for letting us know that this issue does not generally happen with taps! Looks like I may have to learn to live with tapping 🤢

jjoshrtca avatar Jun 16 '21 18:06 jjoshrtca

I am experiencing same issue too. would appreciate if someone can provide a fix or remedy.

sanarena avatar Aug 13 '22 08:08 sanarena