Skip to content

test: read a pressed control's face again once its answer lands, so the next thread Resolve opens isn't a flicker - #5691

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5682
Nov 8, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5682

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Since #5390, Resolve in the floating panel's thread view moves on to the next open thread, which is the behavior the user chose and #5390 restored. On thread-panel-gallery and feature-gallery, the next thread puts a message's picture button (.lf-picture, cursor: zoom-in) under the pointer while the Resolve is still travelling. press_each_control compared only the face before the press with the face while the gesture travelled, so it reported the panel moving on as a flicker on Resolve.

The check now reads the face at the pointer a third time, after the answer has landed, and reports a failure only when the face seen while the gesture travelled is different from both the face before the press and the face after the answer. A flicker, such as a busy cursor or a disabled face for one round trip, is gone once the answer arrives, so it is still caught. A face the press drew and the answer keeps is the press's own result. A refused gesture puts the page back as it was, so for those presses the check still holds the travelling face to the face before the press.

Verification:

Closes #5682 — automated triage

…he next thread Resolve opens isn't a flicker

Since #5390, Resolve in the floating panel's thread view moves on to the next
open thread, as the user chose. The pressed-controls journey then found the
next thread's picture button (cursor: zoom-in) under the pointer while the
Resolve travelled, and reported it as Resolve changing face.

`press_each_control` now reports a changed face only when the face under the
pointer once the answer lands differs from the one seen while the gesture
travelled. A busy or disabled face that the answer takes away is still a
flicker; a face the press drew and the answer keeps is the press's result.

Closes #5682
@leaf-agent
leaf-agent merged commit 708812a into main Nov 8, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5682 branch November 8, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_a_pressed_panel_control_keeps_its_face_and_takes_the_next_press: Resolve shows a picture's cursor since #5390

1 participant