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

Mouse pointer Crosshair & Mouse Jump Issue #24523

Closed
taxi8675 opened this issue Mar 3, 2023 · 4 comments
Closed

Mouse pointer Crosshair & Mouse Jump Issue #24523

taxi8675 opened this issue Mar 3, 2023 · 4 comments
Assignees
Labels
Issue-Bug Something isn't working Priority-3 Bug that is low priority Product-Mouse Utilities Refers to the Mouse Utilities PowerToy Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@taxi8675
Copy link

taxi8675 commented Mar 3, 2023

Microsoft PowerToys version

0.68.0

Installation method

Microsoft Store

Running as admin

Yes

Area(s) with issue?

Mouse Utilities

Steps to reproduce

  1. Turn Mouse pointer Crosshairs & Mouse Jump utilities on
  2. Activate Mouse Jump screen while having crosshairs enabled
  3. Click anywhere to "mouse jump"

✔️ Expected Behavior

Mouse pointer Crosshairs should follow pointer's coordinates after "mouse jump"

❌ Actual Behavior

Mouse pointer Crosshairs stayed in pointer's previous coordinates after "mouse jump"

Other Software

No response

@taxi8675 taxi8675 added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 3, 2023
@jaimecbernardo jaimecbernardo added Product-Mouse Utilities Refers to the Mouse Utilities PowerToy Priority-3 Bug that is low priority and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 3, 2023
@jaimecbernardo jaimecbernardo added this to the Post stabilization milestone Mar 3, 2023
@jaimecbernardo
Copy link
Collaborator

It updates as soon as you move the mouse, but indeed it doesn't update right after the jump. It's because when we move the cursor there's no actual low level keyboard input to react to. Wonder if we need to fake it.

@jaimecbernardo
Copy link
Collaborator

I assume a SendInput call with MOUSEEVENTF_ABSOLUTE is the way to go here. https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-mouseinput

@mikeclayton
Copy link
Contributor

mikeclayton commented Mar 3, 2023

It’s possible SendInput might make the problem worse with the LittleBigMouse ticket - I think LBM looks for the first mouse event on a new monitor and scales the position and moves the cursor again to its final dpi-scaled position - at the moment Mouse Jump moves the cursor ok with LBM enabled but LBM “skips” it when you move it, whereas it might skip it as part of the Mouse Jump if sees the synthetic SendInput event above, which would mean it would land in the wrong place rather than land, then skip.

Its glitchy behaviour either way, but I guess it depends on what’s least undesirable all round…

I’m happy to take a look if no-one else has started working in this yet…

@jaimecbernardo jaimecbernardo self-assigned this Mar 3, 2023
@Jay-o-Way Jay-o-Way added the Status-In progress This issue or work-item is under development label Mar 11, 2023
@stefansjfw stefansjfw added Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. and removed Status-In progress This issue or work-item is under development labels Mar 16, 2023
@crutkas
Copy link
Member

crutkas commented May 8, 2023

Fixed in 0.69 which was released in the start of April 2023.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Priority-3 Bug that is low priority Product-Mouse Utilities Refers to the Mouse Utilities PowerToy Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
Status: Done
Development

No branches or pull requests

6 participants