Skip to content

Holding raised twice for nested listeners; drag ignored when pointer FrameId is 0 #26560

Closed

Description

@MartinZikmund

Current behavior 🐛

Two independent input bugs:

  1. 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.
  2. 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 🎯

  1. Holding is raised once for a press and bubbles, like on WinUI.
  2. A drag starts regardless of the pointer FrameId value.

How to reproduce it (as minimally and precisely as possible) 🔬

  1. Nest two elements that both handle Holding (e.g. a Border inside a Grid), press and hold on the inner one: Holding Started fires twice for the same press depending on timer order.
  2. 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.

Affected platforms 📱💻🖥️

All platforms 🌍

Uno.Sdk version (and other relevant versions) 📦

master

IDE version 🧑‍💻

N/A

Activity

  1. added
    kind/bug
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions