WarUI

Touch and Long-Press Menus

GRID-A22-F23P2baselinePlanned

On touch devices, a long press opens the context menu, and header menus open as bottom sheets on narrow viewports. Placement and target sizes are adapted for touch. This keeps menu features usable on tablets and phones.

Planned. This page shows the specification from issue #202. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid shown inside a mobile-sized frame, with touch emulation hint text.

Expected behavior

A long press gives haptic feedback where supported and opens the menu. Below the breakpoint, menus appear as a bottom sheet. Scrolling cancels a long press that is in progress.

Planned API surface

gridOptions.touchMenu{longPressMs,presentation:'popover'|'sheet'|'auto',sheetBreakpoint}onContextMenuOpen(params.source)

Acceptance criteria

  • Moving more than 10 px during the press cancels the long press. (pending)
  • params.source is set to 'touch'. (pending)
  • Sheet items are at least 44 px tall. (pending)
  • Submenus inside a sheet open as a drill-down view with a back button. (pending)