Replies: 1 comment 1 reply
-
Imagine if you used the points from predicted for handwriting drawing, that the stroke will be full of serrations, not a smooth curve. Reference #1477 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As we can see, the Avalonia will use ptPixelLocation in AppWndProc
Avalonia/src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs
Line 1055 in de86c5a
As the document https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-pointer_info says, the ptPixelLocation is the predicted screen coordinates of the pointer, in pixels.
And I do not think we can use the predicted pointer here.
And the WPF use the ptPixelLocationRaw, see https://github.com/dotnet/wpf/blob/a13bb634c1dcdf0bf7cda9a02c448b53366b8550/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusDevice.cs#L637
Beta Was this translation helpful? Give feedback.
All reactions