Skip to content

Fix: Keep the top bar's controls where they take clicks when the appbar folds - #184

Merged
b-re-w merged 4 commits into
developfrom
feat/bar-follows
Nov 9, 2026
Merged

b-re-w merged 4 commits into
developfrom
feat/bar-follows

Conversation

@b-re-w

@b-re-w b-re-w commented Nov 9, 2026

Copy link
Copy Markdown
Member

Owner report: with the appbar folded, the top row's buttons are misplaced and cannot be pressed (seen on held Edge 156).

Reproduced with the bar-folded scene from #182 (release build, .scratch\fold-before):

  • Whale: after the fold the trace kept "painted at 346" and the clicks went to the new places; the bar painted at 11 only after the next click. Folded: "a click on the middle of Forward/Reload/Address did not reach it".
  • Brave: the painted place never moved after folding (393 shown and folded).
  • Chrome, Brave, Samsung: the window's hit test at every bar control's middle gave 2 (HTCAPTION, the browser's own answer for its title bar), shown and folded. A real click there would start a window drag.
  • Edge 157 passed.

Fix:

  • panel_moved (the browser laid the panel out somewhere new) posts Rivet.BarMoved, which repaints the top bar after that layout.
  • hit_test answers HTCLIENT for a point on a bar control (address_bar::part_at, the same places the bar is painted from) before the title row rules.
  • bar-folded joins the default rows; its PASS reason is a string now.

Test: fr12_each_control_answers_where_it_is_painted_shown_and_folded. After numbers follow from the same scene on all five once merged.

🤖 Generated with Claude Code

b-re-w and others added 3 commits November 10, 2026 04:27
…ar folds

Folding the appbar moves the browser's panel, and the top bar with it, but the bar was painted
again only on a later event, so its buttons showed at their old place while the clicks went to
the new one. The bar now repaints right after the browser moves the panel. The window's hit test
also gives the bar's controls to the bar itself, from the places it paints them, where the
browser's own hit test called them title bar on Chrome, Brave and Samsung Internet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three tabs with a pin and a folder, then three folds and three shows, by the appbar's own fold
button where the runtime traced it and by the command, with every control checked and clicked
after each change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@b-re-w
b-re-w merged commit 513cb2b into develop Nov 9, 2026
3 checks passed
@b-re-w
b-re-w deleted the feat/bar-follows branch November 9, 2026 20:01
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.

1 participant