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
Holding raised twice for nested listeners; drag ignored when pointer FrameId is 0 #26560
Holding is raised twice for nested listeners. Every element listening to Holding runs its own holding timer for the press, and those timers can tick in any order. When an ancestor's timer ticks first, it raises Holding from itself, and the deepest listener then raises it again (bubbling), producing a duplicate Started. This is exposed by ListViewBaseItem.OnHolding, which makes every ListView item listen to Holding.
A drag whose pointer FrameId is 0 never starts. The one-drag-per-frame guard compares the FrameId with the last one, which defaults to 0, so a drag on frame 0 is silently ignored. The first injected touch sequence of a process has FrameId 0, so the first touch drag of a test run does nothing.
Expected behavior 🎯
Holding is raised once for a press and bubbles, like on WinUI.
A drag starts regardless of the pointer FrameId value.
How to reproduce it (as minimally and precisely as possible) 🔬
Nest two elements that both handle Holding (e.g. a Border inside a Grid), press and hold on the inner one: HoldingStarted fires twice for the same press depending on timer order.
Inject (or perform) a touch drag as the first pointer sequence of the process (FrameId 0): the drag does not start.
Workaround 🛠️
None for nested Holding; for the drag, perform a throwaway touch sequence first.
Activity