You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement GestureFollowing on PointerRoutedEventArgs #25673
Implement PointerRoutedEventArgs.GestureFollowing (internal, WinUI's GestureModes). It's currently stubbed in src/Uno.UI/UI/Xaml/Input/PointerRoutedEventArgs.MuxInternal.cs and always returns GestureModes.None. When a touch or pen hold ends, PointerReleased should report GestureModes.RightTapped, as WinUI does.
Why is this needed? 🤔
Several ported WinUI controls already branch on it in OnPointerReleased. They skip their release action and wait for OnRightTappedUnhandled when a right-tap follows:
Since the value is always None, these controls act on the release of a touch hold. Their WinUI counterparts act on the unhandled RightTapped instead. SelectorItem approximates the same signal for ListView/GridView items with a static record of the last held press (GestureRecognizer._lastHeldPress, PR #25531). GestureFollowing would replace that record and its single-slot multi-touch limitation.
Implementing it changes those five controls on touch and pen holds. Each one has to get a RightTapped for the hold, so its OnRightTappedUnhandled path runs. That needs its own validation, which is why it was kept out of #25531.
For which platforms 📱💻🖥️
All platforms 🌍
Anything else we need to know? 💬
Follow-up from the review of #25531. The TODO Uno on SelectorItem.IsListViewBaseItemHold links here.
Activity