Skip to content

de79d7c

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 12:58

fix(web): Let the page settle before a long press right-clicks

In direct touch, the long-press timer right-clicked from its first run if
that ran no more than LONG_PRESS_SETTLE_MS late. A main thread busy from a
quick tap until just past the long press (up to 50 ms past it) ran the
timer, a little late, before the handler of the lift, and the tap
right-clicked. The issue's 786 ms row is such a run.

The timer now runs to LONG_PRESS_SETTLE_MS short of the long press and
then always waits out that last stretch, again as often as the wait runs
more than LONG_PRESS_SETTLE_MS late, so the thread is free for a while
before the right click and handles a lift still on its way first. A press
held on a free page still right-clicks at LONG_PRESS_MS, once.

The touch audit gains checks for a tap lifted at 90 ms with the page busy
to 760, 790, 800 and 2500 ms, a settling wait that runs late too, a press
held through a busy spell, a touch handled a second late and lifted past
the long press, and the time of a long press on a free page. The first
three taps right-click before the change.