Skip to content

Implement GestureFollowing on PointerRoutedEventArgs #25673

Open

Description

@ajpinedam

What would you like to be added? 💡

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:

  • ButtonBase (ButtonBase.mux.cs)
  • ComboBox (ComboBox.partial.mux.cs)
  • Slider (Slider.mux.cs)
  • MenuFlyoutItem (MenuFlyoutItem.mux.cs)
  • CalendarDatePicker (CalendarDatePicker_Partial.cs)

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

  1. added
    kind/enhancement
    triage/untriaged
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementtriage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions