Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected Cursor Teleportation #2

Closed
wildmanlennox opened this issue Apr 10, 2019 · 12 comments
Closed

Unexpected Cursor Teleportation #2

wildmanlennox opened this issue Apr 10, 2019 · 12 comments

Comments

@wildmanlennox
Copy link

on some passes between monitors, the cursor will jump to the center of the next screen

@r-Larch
Copy link
Owner

r-Larch commented May 10, 2019

This is most likely because of my simple fix to a weird windows behavior.
Where windows does not allow the mouse to travel across desktop regions that are not painted to any screen.

Example:

  ___________  ____________
 |           | not painted |
 |           |_________
 |  Sceen1   |         |
 |           | Sceen2  |
 |___________|_________|

Problem:

The mouse can not move between two points when the straight line connecting both points goes through a not painted region.

Simple Solution:

For every teleportation, move the mouse to the center of the target screen and from there move it to the destination position.

Advenced Solution:

Do some fancy math to always find the rigth path.

Could this be the case for you?

Can you please send me a screenshot of the "Mousetrap Settings" window where your screens setup is visible?

@wildmanlennox
Copy link
Author

wildmanlennox commented May 10, 2019

Further Info: the problem can be reproduced at any location between monitors, simply wiggle the mouse back and forth and it will happen eventually. Also my monitors differ in resolution but are the same physical size
image

@r-Larch
Copy link
Owner

r-Larch commented May 10, 2019

Thanks, I will see what i can do.

@Majzer
Copy link

Majzer commented Mar 27, 2020

It's still happening.

@ThaBoss07
Copy link

Just downloaded and testing. This issue still exists. Mouse will jump to center of screen you are moving cursor to. Will update if more problems arise but so far super smooth.

@r-Larch
Copy link
Owner

r-Larch commented Jul 25, 2020

@ThaBoss07 I can't reproduce this bug on any computer or configuration.

Can you specify your configuration?

  • The exact resolution and offset of each screen. (The "Mousetrap Settings" screen should contain this information)
  • Your configuration under %APPDATA%\MouseTrap\ScreenConfigCollection.json
  • Your Windows 10 build number?
  • At which scaling run your screens? (WIN+i -> System -> Display -> Scale and layout)
  • The exact conditions at which the mouse gets teleported wrong:
    • Position on screen.
    • Movement direction and speed.
    • Did you drag something, for drag and drop?
    • Do you have high CPU usage while the problem arises?
    • Do you have programs running with administrator permissions (visible in the foreground)?
    • Where there any fullscreen applications running, like games or movies?
    • Do you have any specialized device drivers?
    • Can you think of anything else worth mentioning here?

@lxk3il
Copy link

lxk3il commented Nov 22, 2020

I just did a fresh install and can confirm this issue with the following setup:

[{"ScreenId":0,"Name":"Screen1","TopBridge":null,"LeftBridge":null,"RightBridge":{"TopOffset":0,"BottomOffset":361,"TargetScreenId":1},"BottomBridge":null},{"ScreenId":1,"Name":"Screen2","TopBridge":null,"LeftBridge":{"TopOffset":0,"BottomOffset":0,"TargetScreenId":0},"RightBridge":null,"BottomBridge":null}]
  • Windows build is 19041.630
  • Scaling is 150%

@wildmanlennox already described how the problem can be reproduced, for example by wiggling the mouse back and forth between screens

r-Larch added a commit that referenced this issue Nov 24, 2020
@r-Larch
Copy link
Owner

r-Larch commented Nov 24, 2020

Mousetrap v1.0.6 is released

In this version, I've done some optimizations regarding this Problem.
Please try it out and report back if the issue is resolved.

I will close this issue now and if the problem continues to occur,
then please reopen the issue or create a new one.

Changelog

Version 1.0.6

  • Migrate to .NET 5 (from legacy .NET Framework)
  • Adds Diagnostic Window
    • Realtime Log Viewer
    • Configutation Viewer
    • LogFile Viewer
  • Implements a potential fix for #2 Unexpected Cursor Teleportation
  • Adds an option to disable Mouse teleportation - That's usefull while gaming in fullscreen!
  • Lots of smaller bugfixes

@lxk3il
Copy link

lxk3il commented Nov 24, 2020

Thanks for the update!
I just tested it, but unfortunately it seems that the issue still persists.

Setup is the same as described in #2 (comment)

@r-Larch r-Larch reopened this Nov 24, 2020
@r-Larch
Copy link
Owner

r-Larch commented Nov 24, 2020

Can you please reproduce the bug with realtime loggong on, in the new diagnostic window, and send me then the diagnostic data to analyze.

Thanks for this quick reaction

@lxk3il
Copy link

lxk3il commented Nov 26, 2020

I did a complete reinstall of the new release now and the problem seems to be solved now. No more cursor teleportation.
Will observe it further and let you know, when the problem arises again.

But it seems to be fixed for now, thank you very much!

@r-Larch
Copy link
Owner

r-Larch commented Nov 26, 2020

I'm happy to hear that,
thank you.

I suspect on your first try you got the victim of my mechanism to only keep one instance running, because this mechanism awakes the running instance (if there is one) instead of running a new one. This means you can double click on the new version and what happens is, it opens the settings screen of the old (currently running) version.

Have a nice day!

@r-Larch r-Larch closed this as completed Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants