dotnet / dotnet/wpf

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

Open
#3,360 4 comments 0 reactions 0 assignees View on GitHub
area-Touch Bug
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

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.

![](http://image.acmx.xyz/lindexi%2F%25E8%25A7%25A6%25E6%2591%25B8%25E5%2581%258F%25E7%25A7%25BB.png)

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

![](http://image.acmx.xyz/lindexi%2F%25E8%25A7%25A6%25E6%2591%25B8%25E5%2581%258F%25E7%25A7%25BB.gif)


**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.