The usage page's guard against the mouse events a phone makes up after
a long press (quotaPressing) ate every click and mousedown outside a
row menu for 1s after quotaPressed. quotaPressed started at 0, so with
no long press at all, any row menu opened in the page's first second
(performance.now() < 1000) could not be closed by its button or by a
click outside it, and nothing else on the page took a click until then.
Found while testing the Library bar's new ⋯: the test opens it within
a second of loading and its second click was swallowed. quotaPressed
now starts at -Infinity, "never".
Run (mote, through mote-run):
- node --test internal/gui/tests/menu-first-second.test.cjs: 2 pass
(Chromium and WebKit). The test sets the page's clock back 10s so it
is all in that first second, and checks it is.
Broken by hand: quotaPressed back to 0, both engines red (".row-menu
to be detached" timed out after the second click on its button).
Not tried: a real long press on a phone (the 1s after one is unchanged).