Repository navigation
Description
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) π¬
- Create an app with a
SelectorBarcontaining a fewSelectorBarItems. - Run on iOS or Android with Skia rendering (or any Skia target with a touchscreen).
- Tap an item β
SelectedItemremains 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
agneszitte commentedon Jul 27, 2026
Related to this
agneszitte commentedon Jul 27, 2026
@khaskoul, @jhanvi03 can you validate this issue with latest Uno.Sdk 6.7.0-dev.143 version please
jhanvi03 commentedon Jul 29, 2026
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