Long-press to select text and long-press for a menu share an onset
Aliases: press-and-hold select · context menu clash · select word
What it is
Holding on editable or selectable text may select a word or pop a context menu (copy, share, translate). Both results share “stillness past a duration.” The clash is after text hit-testing, on the frame the clock fires—not general gesture competition, and not the fight between selection handles and scrolling.
Why it happens
Platforms bind long-press on a text layer to selection: at timeout they place a caret, select the nearest word, and may show a magnifier. Apps and the web often listen for a long-press menu on the same node. Who preventDefaults first, and whose failure requirement is wired first, decides whether the user sees a blue selection or a sheet. If the menu wins, selection is blocked; if selection wins, the menu waits for a second hold or for the selection toolbar. Long-press on a text node is therefore not “extra semantics”; it is two product lines grabbing one clock.
Studying it
Long-press on plain text, on a link, and on a bubble that already has a custom menu. Record whether selection, the system menu, or the app menu appears first. Factors include user-select and whether a custom hold is attached. Match the spoken goal (“copy this word” versus “share the whole card”) to the outcome. Do not test on buttons—buttons have no select-word channel.
Where it stops holding
Unselectable labels (user-select: none) leave only the menu. In an already focused field, long-press is almost always selection and the menu is deferred to a toolbar, so the clash shrinks. A hold on a blank paragraph may insert a caret rather than select a word. Pointer modes that open menus on a light tap remove this duration clash.
Applying it
- On selectable text, give long-press to selection by default; put card-level share on an explicit button or on the toolbar that appears after a selection—do not race the clock.
- Hit-test links and neighbouring text apart: the link may preview or menu, the letters beside it select.
- Ask for “copy one word in this sentence” and “share this whole card”; the two must not land on the same visual result.
Related
- Same group: C3.30.2 Dragging selection handles versus scrolling needs handle hit priority · C3.30.3 Double-tap select versus double-tap zoom must drop one in text · C3.30.4 While selection is active, other gestures should yield
- Adjacent: C3.03 Long press · C3.19 Gesture conflicts and disambiguation
- Search:
text selection·context menu·long-press conflict