WinUI 3 ScrollViewer does not bubble PointerCaptureLost event when ancestor calls CapturePointer in PointerPressed #9883
Labels
area-Pointer
area-Scrolling
bug
Something isn't working
closed-Fixed
Described behavior has been fixed.
fix-released
The fix has been in a release (experimental, preview, stable, or servicing).
team-Controls
Issue for the Controls team
Milestone
Describe the bug
In UWP, if you have something like:
when you start a direct manipulation on the ScrollViewer with a touch gesture, the PointerCaptureLost event bubbles to the StackPanel. In WinUI 3, this does not occur.
This manifests in a limitation for React Native Windows, which uses pointer routed events at the top-level WinUI component to proxy events to JavaScript, and relies on ScrollViewer bubbling the PointerCaptureLost event to know when to cancel a gesture sequence emitted to JavaScript.
Steps to reproduce the bug
CapturePointer
in it'sPointerPressed
callback.PointerCaptureLost
event on the ancestor that captures the pointer.Expected behavior
WinUI 3 ScrollViewer should bubble a PointerCaptureLost event like it does in UWP when a touch gesture results in direct manipulation in a ScrollViewer.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5.5: 1.5.240627000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: