Commit Graph
1 Commits
Author SHA1 Message Date
yetone adf30aa634 gui: a menu opened from beside a long text box stays open
A text box whose text is longer than it goes back to its start as it
loses focus, which fires a scroll event on the box. Every app menu
closes on a scroll outside itself (scrollCloses), so clicking a routing
rule's ⋯ or + right after typing a long folder list opened the menu and
shut it in the same frame: nothing showed. Both engines do it.

scrollCloses now ignores a scroll whose target is an input or textarea:
a box scrolling its own text moves nothing the menu is placed by. It is
the one helper every menu (openRowMenu, openProtoMenu, the agent models
menu, the removed-groups menu) asks, so all of them get it.

Run: new menu-input-scroll.test.cjs (⋯ and + after a folder list longer
than its box; Chromium and WebKit, en and zh): 4/4, 8/8 WebKit reruns.
With the line taken out: 0/4. click-scroll and every *menu* test pass
but removed-groups-menu-scroll, which is red 1-2 of 8 per run on
a4d580fa2 too.
2026-10-14 22:43:43 +08:00