PointerRoutedEventArgs.GetCurrentPoint() gives a frozen state of the PointerPoint after PointerExited fired #7686
Labels
bug
Something isn't working
no-issue-activity
product-winui3
WinUI 3 issues
team-CompInput
Issue for IXP (Composition, Input) team
Describe the bug
I am using the PointerExited event of my own text editor control to trigger scrolling (e.g. as in VS, the text scrolls up with a speed depending on the distance of the Pointer to the TextControl). After the scrolling is triggered, a DispatcherTimer should be used to continously get the current state of the Pointer to slow down/ stop the scrolling. But within the DispatcherTimer.Tick event action, calling GetCurrentPoint() only gives the same PointerPoint as in the initial PointerExited event. This worked in WinAppSDK 1.0.X but does not work in 1.1.X anymore. Is this by design? If yes, how can I achieve the wanted behaviour?
Steps to reproduce the bug
Output (even when you move the cursor and release the left button) is always the same:
Expected behavior
pointup.Position should always be the current pointer position and not the 'frozen' pointer position of the PointerExited event. The same problem is with all properties, like pointup.Properties.IsLeftButtonPressed.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.1.4
Windows app type
Device form factor
Desktop
Windows version
Windows 11 (21H2): Build 22000
Additional context
No response
The text was updated successfully, but these errors were encountered: