Skip to content

SelectorBar/ItemsView items not selected on touch tap (Skia iOS/Android)Β #23876

Closed

Description

@ajpinedam

Current behavior πŸ›

Tapping a SelectorBarItem with touch does not select it on Skia targets β€” reported on iOS and Android with Skia rendering. Mouse clicks work correctly (since #23208), so the same app behaves correctly on desktop but is broken on mobile.

This is not actually platform-specific: it is an input-device split. Any touch (or pen) input on a Skia target reproduces it β€” including Windows touchscreens β€” and it was reproduced with injected touch input on Skia Desktop (macOS). It also affects ItemsView selection in general, since SelectorBar delegates selection to ItemsView.

Expected behavior 🎯

A touch tap on a SelectorBarItem selects it, exactly like a mouse click (WinUI behavior).

How to reproduce it (as minimally and precisely as possible) πŸ”¬

  1. Create an app with a SelectorBar containing a few SelectorBarItems.
  2. Run on iOS or Android with Skia rendering (or any Skia target with a touchscreen).
  3. Tap an item β†’ SelectedItem remains unchanged (null); no visual selection.

Runtime test repro (fails without the fix, passes with it β€” runs on Skia Desktop via touch injection):
SelectorBarTests.VerifySelectorBarItemBecomesSelectedAfterTouchTap (added by the fix PR, twin of the existing mouse test).

Workaround πŸ› οΈ

None known.

Renderer 🎨

  • Skia
  • Native

Affected platforms πŸ“±πŸ’»πŸ–₯️

iOS, Android (as reported) β€” plus touch/pen input on WebAssembly and Desktop targets (Skia).

Uno.Sdk version (and other relevant versions) πŸ“¦

Reproduced on current master; also affects 6.6.x (where mouse is additionally broken until #23208 is backported).

Anything else we need to know? πŸ’¬

Root cause: ItemContainer.OnPointerReleased calls ReleasePointerCapture before evaluating the item-invoke gate. On managed pointers the release synchronously raises PointerCaptureLost β†’ ProcessPointerCanceled, which resets the touch/pen pointer-over state. The gate then fails its IsPointerOver() check, so ItemInvoked(PointerReleased) β€” the only trigger ItemsView processes for selection (Tap is a selection no-op) β€” is never raised. PR #23208 fixed this re-entrancy for the mouse branch only; the touch and pen branches still clear their over-state.

Activity

  1. added
    triage/untriaged
    on Jul 25, 2026
  2. agneszitte commented on Jul 27, 2026

    @agneszitte
    Member

    Related to this

  3. agneszitte commented on Jul 27, 2026

    @agneszitte
    Member

    @khaskoul, @jhanvi03 can you validate this issue with latest Uno.Sdk 6.7.0-dev.143 version please

  4. jhanvi03 commented on Jul 29, 2026

    @jhanvi03

    Issue resolved in latest sdk/template.

    Verified with:
    Templates/SDK: 6.6.42
    VS VSIX: 6.6.22
    VS Code VSIX: 0.25.3
    Rider plugin: 1.10.56
    OS: MAc, Windows, Linux
    TFM: iOS, Andorid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triage/untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions