Repository navigation
fix(gestures): Raise Holding once for nested listeners and start FrameId 0 drags - #26561
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Claude finished @MartinZikmund's task in 31s —— View job PR review: fix(gestures): Raise Holding once for nested listeners and start FrameId 0 dragsVerdict: fix-first (minor). The approach is sound and small. Elapsing descendants' holds first, deepest first, makes Issues: 0 high, 2 medium (posted inline), 0 low. Cross-cutting notes
|
|
This pull request is merged. |
b1c8b87 to
9c35644
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Claude finished @MartinZikmund's task in 20s —— View job PR review: fix(gestures): Raise Holding once for nested listeners and start FrameId 0 dragsVerdict: fix-first (minor). The approach is sound and small. Elapsing descendants' holds first, deepest first, makes Issues: 0 high, 3 medium, 0 low. The three are the two earlier inline comments (the static Cross-cutting notes
|
9c35644 to
9d511f2
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Claude finished @MartinZikmund's task in 11s —— View job PR review: fix(gestures): Raise Holding once for nested listeners and start FrameId 0 dragsVerdict: ship, with one open item. The new commit fixes both threading and lifecycle concerns from the previous round. This is a code-review assessment of the diff only. I did not build or run the runtime tests, so there is no compile or runtime validation. Resolved since the last review
Still open (medium, no inline comment)
Minor notes
|
9d511f2 to
75f6ddf
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Claude finished @MartinZikmund's task in 16s —— View job PR review: fix(gestures): Raise Holding once for nested listeners and start FrameId 0 dragsVerdict: ship. This is a review of the diff only. I did not build the project or run any tests, so there is no compile or runtime validation. Issues: 0 high, 0 medium, 0 low. I posted no new inline comments. Checked against the earlier review rounds
Minor notes (non-blocking)
|
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 ticked first, it raised Holding from itself and the deepest listener then raised it again, bubbling: a duplicate Started. Elapse the descendants' holds of the same press first, deepest first, so the hold is raised once and bubbles like on WinUI. Exposed by ListViewBaseItem.OnHolding, which makes every ListView item listen to Holding. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2NWgGKJFTAYtNHkvT
The one-drag-per-frame guard compared the FrameId with the last one, which defaults to 0, so a drag on frame 0 never started. The first injected touch sequence of a process has FrameId 0, which made the first touch drag of a test run silently do nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2NWgGKJFTAYtNHkvT
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2NWgGKJFTAYtNHkvT
Holding timers tick on their own UI thread, so the pending list is thread-static, and restarting a gesture's timer stops the previous one so the list never holds a stale entry. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzpwqXiaSHwvb2y5UA
75f6ddf to
11168fd
Compare
|
Claude finished @MartinZikmund's task in 15s —— View job PR review: fix(gestures): Raise Holding once for nested listeners and start FrameId 0 dragsVerdict: ship. This is a review of the diff only ( Issues: 0 high, 0 medium, 0 low. I posted no new inline comments. Checked on this push (HEAD
Minor notes (non-blocking)
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
GitHub Issue: closes #26560
PR Type:
🐞 Bugfix
What changed? 🚀
Two core input fixes, split out of #25389 per review so they can land (or be reverted) independently of the ListViewItemPresenter port. #25389 keeps these commits until this PR merges.
Holdingruns its own holding timer, and the timers can tick in any order. When an ancestor ticked first,Holdingwas raised from it and then again by the deepest listener (bubbling), giving a duplicateStarted. The descendants' holds of the same press are now elapsed first, deepest first, soHoldingis raised once and bubbles like on WinUI.FrameIdwith a last value defaulting to 0, so a drag on frame 0 never started. The guard no longer swallowsFrameId0.A runtime test covers
Holdingwith nested listeners. The FrameId 0 drag fix has no runtime test: only the first injected pointer sequence of a process carries FrameId 0, so a test can't reliably reproduce it unless it runs first. That is also how the bug showed up, as the first touch drag of a test run silently doing nothing.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01TXMNtzpwqXiaSHwvb2y5UA