Skip to content

feat(ui): a submenu waits for the pointer heading into it - #271

Merged
Hona merged 2 commits into
devfrom
ws8/submenu
Nov 20, 2026
Merged

Hona merged 2 commits into
devfrom
ws8/submenu

Conversation

@Hona

@Hona Hona commented Nov 20, 2026

Copy link
Copy Markdown
Member

Ports anomalyco/opencode#63739 (submenu-machine.ts and its Kobalte pointer-grace patch) to drawn menus, as one explicit machine (crates/opencode-ui/src/popup/submenu.rs).

  • Aiming: leaving a submenu's row toward the submenu, the rows crossed on the way don't light while each move still points into the submenu's near edge; each such move renews 300 ms. A move past the edge, or the grace running out, lights the row under the pointer.
  • Leaving: lighting a row without a submenu keeps the open submenu 150 ms; a row with its own submenu replaces it in the same frame.
  • Cost: pointer moves over a menu stay out of the view's state; only a move on its way into a submenu acts.

Before | after, diagonal move from File toward its submenu across Edit, then the grace running out, then a straight drift down:

Checks: guardrails 5/5, check --workspace, web.ps1 -Check.

Hona added 2 commits November 20, 2026 20:14
Ports anomalyco/opencode#63739 (submenu-machine.ts and its Kobalte pointer-grace patch) to
drawn menus, as one explicit machine (popup/submenu.rs).

- Aiming: leaving a submenu's row toward the submenu, the rows crossed on the way don't light
  while each move still points into the submenu's near edge; each such move renews 300 ms. A
  move past the edge, or the grace running out, lights the row under the pointer.
- Leaving: lighting a row without a submenu keeps the open submenu 150 ms, so the pointer can
  still reach it; a row with its own submenu replaces it in the same frame.
- Pointer moves over a menu are kept out of the view's state: only a move on its way into a
  submenu acts.
@Hona
Hona merged commit 08f28f8 into dev Nov 20, 2026
3 checks passed
@Hona
Hona deleted the ws8/submenu branch November 20, 2026 10:15
Hona added a commit that referenced this pull request Nov 20, 2026
…..UP-117 (#284)

- Fold verified fleet PRs #259, #267, #268, #269, #270, #271, #272, #273,
  #275, #276, #277, #279, and #282 (Rune e6deb869: #1297, #1298, #1299, #1300)
  into docs/upstream-sync/ledger.{json,md}
- Split UP-095 (#63002) transparently across active browser streams (WS-1,
  BROWSER-UI, PREVIEWS, BROWSER-TOOLS, WS-9), reassign UP-100 to BROWSER-UI
  and PRE-08 to BROWSER-TOOLS
- Track open tab-groups packaged-default regression on UP-062 (fix PR #278
  open) and record closure of Settings > Shortcuts hidden-command regression
  on UP-064 (#279)
- Audit upstream anomalyco/opencode 92d35f8e18..bfee96a859 (+11 commits:
  7 skipped, 4 added: UP-114..UP-117) and update radar routing
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