Skip to content

WPF will have a touch offset after trun on the WM_Pointer message #3360

Open

Description

  • .NET Core Version: 3.1.301
  • Windows version: (winver)
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes

Problem description:

I don’t know how to turn on WM_Pointer message under .NET Core 3.1, but I can turn on WM_Pointer message under .NET Framework 4.7.2

After the Pointer message is turned on, the coordinates of the GetStylusPoints points I obtained in the StylusMove event are incorrect, and there is a big error with the coordinates of the correct point.

Actual behavior:

My application works well at a resolution of 1920x1080, but at a resolution of 800x600, problems will occur.

The behavior of the application is that when using touch to draw handwriting, the handwriting drawn by the application does not coincide with my actual touch track

As shown below

Expected behavior:

I expect to draw the same effect under Pointer as without using Pointer

Minimal repro:

https://github.com/lindexi/lindexi_gd/tree/ae335e8d83a0fbc6297dc2a9196577e5c3319b22/KemjawyecawDurbahelal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    BugProduct bug (most likely)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions