-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
- .NET Core Version: (e.g. 3.0 Preview1, or daily build number, use
dotnet --info) - Windows version: (
winver) - Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes/No
- Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? If yes, please file the issue via the instructions here.
- Security issues and bugs should be reported privately, learn more via our responsible disclosure guidelines.
Problem description:
After #2891 , we call calculate the point with stylusDevice.CriticalActiveSource. But the stylusDevice.CriticalActiveSource must be null when first touch down, because the wpf do not touch any element and do not get the AcitveSource before first touch down.
Actual behavior:
All of the StylusPlugin will reviece the wrong coordinate point.
Expected behavior:
These points can be calculated correctly.
Minimal repro:
Before you try repro this issues, please make sure you own a touch screen.
Preparation:
- Set the touch screen DPI to 150% (Not 100% is enough)
Step:
- Create an empty WPF project.
- Add the InkCanvas control to WPF project.
- Run the project in the device with the touch screen and then try write an ink.
Actual behavior: you will find the first point in ink will skew, just as the image shows.
The other repro step: Create an empty WPF project and add the StylusPlugin and then output the point received.
Reactions are currently unavailable

