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

Instance of an object from System.Windows.Input halves the point passed to Mouse.Click #612

Open
mircea21S opened this issue Jan 11, 2024 · 1 comment

Comments

@mircea21S
Copy link

mircea21S commented Jan 11, 2024

Describe the bug
If I am trying to use Mouse.Click(Point) and in the same test I am having an unused instance of some object from System.Windows.Input namespace. The Point used by Mouse.Click() will have the coordinates halved.
Note: Also works having a reference to an object that's using an instance from System.Windows.Input.

Code snippets
var x = new System.Windows.Input.MouseGesture();
Mouse.Click(new Point(100,100))

So the Point has X = 100, Y = 100 and on the screen the Mouse will be positioned at a Point that has X = 50, Y = 50. If I don't have any instance from System.Windows.Input it's positioning the mouse correctly.

@Roemer
Copy link
Member

Roemer commented Mar 8, 2024

Do you have scaling / high-dpi active?

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

2 participants