A toast's time no longer stays paused when the pointer leaves unseen (WebKit) #369

Closed
kayg wants to merge 0 commits from issue/325-toast-hover-stuck-2 into dev
Owner

Part of #325 (toast-bar, WebKit). Stacked on the #324 PR and the inactive-bar PR; merge those first. Replaces #354.

Cause. toast-bar.spec "a toast is the bar, then the bar comes back" fails on dev in webkit-1440 and webkit-390: after Undo the "Undone" toast stays for good. A toast's time pauses while the pointer is on it (on purpose, so you never miss an Undo). I logged pointerover/pointerout in WebKit: Undo's button is replaced by "Undone" under the pointer, WebKit then sends no pointerleave for the toast around it, so hovered stays true. A real bug: a Safari user with the pointer parked there would also keep the toast. In Chromium the leave arrives, but a test pointer that stays on the toast keeps it paused too (it failed in chromium-1440 once the other reds were cleared).

Fix. The bar listens to pointerover on the window: a pointer move over anything that isn't the toast clears hovered. The test also moves its pointer off after pressing Undo, as a person would, with a comment saying why.

Evidence. toast-bar "a toast is the bar..." passes in chromium-1440, chromium-390, webkit-1440, webkit-390 (before: both webkit red; with only the test's pointer move and no fix, WebKit stayed red, so the fix is what matters).

🤖 Generated with Claude Code

Part of #325 (toast-bar, WebKit). **Stacked on the #324 PR and the inactive-bar PR**; merge those first. Replaces #354. **Cause.** `toast-bar.spec` "a toast is the bar, then the bar comes back" fails on dev in webkit-1440 and webkit-390: after Undo the "Undone" toast stays for good. A toast's time pauses while the pointer is on it (on purpose, so you never miss an Undo). I logged `pointerover`/`pointerout` in WebKit: Undo's button is replaced by "Undone" under the pointer, WebKit then sends no `pointerleave` for the toast around it, so `hovered` stays true. A real bug: a Safari user with the pointer parked there would also keep the toast. In Chromium the leave arrives, but a test pointer that stays on the toast keeps it paused too (it failed in chromium-1440 once the other reds were cleared). **Fix.** The bar listens to `pointerover` on the window: a pointer move over anything that isn't the toast clears `hovered`. The test also moves its pointer off after pressing Undo, as a person would, with a comment saying why. **Evidence.** toast-bar "a toast is the bar..." passes in chromium-1440, chromium-390, webkit-1440, webkit-390 (before: both webkit red; with only the test's pointer move and no fix, WebKit stayed red, so the fix is what matters). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Toasts go only to a bar you can see (#324)
Some checks failed
CI / server (pull_request) Successful in 29s
CI / rust (pull_request) Successful in 3m25s
CI / web (pull_request) Failing after 1m57s
c1bbfa03e9
Notes and Settings stay mounted under each other, so Settings' bar counted as a bar on screen
while it was hidden and inert. On a phone, deleting a note went back to the list (which has no
bar of its own) and the Undo toast was handed to Settings' hidden bar, never showing. A bar now
attaches only while its screen is active.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
A bar under another screen shows no questions or toasts (#325)
Some checks failed
CI / server (pull_request) Successful in 33s
CI / rust (pull_request) Successful in 2m54s
CI / web (pull_request) Failing after 2m8s
ba6d0433c3
The merge question (ui.ask) and the toast queue are shared, so Settings' hidden bar showed the
same question as the visible one: two elements with the same words, and tag-rename's getByText
hit a strict-mode violation. Only the active bar answers for them now, and only it takes Escape.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
A toast's time no longer stays paused when the pointer leaves unseen (#325)
Some checks failed
CI / server (pull_request) Successful in 29s
CI / rust (pull_request) Successful in 2m55s
CI / web (pull_request) Failing after 2m39s
2db6e3e4a4
Undo's button is replaced by 'Undone' under the pointer, and WebKit sends no pointerleave for the
toast around it, so 'hovered' stayed true and the toast never went away. Any pointer move over
something else now clears it. toast-bar.spec moves its pointer off after pressing Undo, as a
person would (a toast waits while the pointer is on it, on purpose).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Landed in merge train #380.

Landed in merge train #380.
kayg closed this pull request 2026-10-14 22:25:38 +00:00
Some checks failed
CI / server (pull_request) Successful in 29s
CI / rust (pull_request) Successful in 2m55s
CI / web (pull_request) Failing after 2m39s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!369
No description provided.