We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 232a0a7 commit d75d2a5Copy full SHA for d75d2a5
Source/Toolkit/SharpDX.Toolkit.Input/MousePlatformDesktop.cs
@@ -42,7 +42,8 @@ public MousePlatformDesktop(object nativeWindow) : base(nativeWindow) { }
42
internal override void SetLocation(Vector2 point)
43
{
44
point.Saturate();
45
- Cursor.Position = control.PointToScreen(new System.Drawing.Point((int)(point.X * control.Width), (int)(point.Y * control.Height)));
+ var clientSize = control.ClientSize;
46
+ Cursor.Position = control.PointToScreen(new System.Drawing.Point((int)(point.X * clientSize.Width), (int)(point.Y * clientSize.Height)));
47
}
48
49
/// <summary>
0 commit comments