Skip to content

UX: replace touch radial menu with standard context menu #5374

Description

@knolleary

When using a touch screen with the editor, a touch-specific radial menu is shown when you long press on the workspace or a node.

We have since added our own custom right-click context menu to the workspace and are exposing an increasing number of things via it.

This task is to replace the radial menu with the context menu for a consistent UX.

Summary

  • showTouchMenu should call RED.contextMenu.show(...)
  • Remove RED.touch.radialMenu

Did a quick poc locally - some more event handling work is needed to make the context menu properly accessible to touch.

Also, need to check what options are exposed on the radialMenu to ensure equivalent functionality is available on the context menu. For example, edit/undo/redo. This does risk making the context menu huge...

Activity

  1. added this to the 5.0 milestone on Dec 4, 2025
  2. added theissue type on Dec 4, 2025
  3. self-assigned this
    on Apr 6, 2026
  4. n-lark commented on Apr 6, 2026

    @n-lark
    Contributor

    Test Plan: Replace Touch Radial Menu with Context Menu

    Note: This was tested in Chrome DevTools with touch simulation enabled.

    All tests passed ✅

    1. Context menu appears on long press

    1a. Long press on empty canvas

    • Long press (~1s) on empty workspace
    • Standard context menu appears at press location
    • No radial/circular menu appears

    1b. Long press on a node

    • Long press (~1s) on a node
    • Context menu appears
    • Node-specific options are present (cut, copy, delete, etc.)

    1c. Long press on a wire/link

    • Long press (~1s) on a wire between two nodes
    • Context menu appears

    2. Context menu dismissal

    2a. Tap outside to dismiss

    • Open context menu via long press
    • Tap anywhere on the canvas outside the menu
    • Menu closes

    2b. Tap a menu item

    • Open context menu via long press
    • Tap a menu item (e.g. "Select All")
    • Menu closes and action executes

    2c. Menu does not immediately self-dismiss

    • Long press to trigger menu
    • Lift finger
    • Menu stays open (does not vanish instantly on finger lift)

    3. Canvas interactions still work after dismissal

    3a. Drag a node

    • Open context menu, dismiss by tapping outside
    • Drag a node to a new position
    • Node moves normally, no stuck state

    3b. Pan the canvas

    • Open context menu, dismiss
    • Drag on empty canvas to pan
    • Canvas pans normally

    3c. Pinch to zoom

    • Open and dismiss a context menu
    • Hold Shift and drag to simulate pinch-zoom in DevTools
    • Zoom works normally

    4. Context menu items function correctly

    4a. Select All

    • Long press on canvas → Select All
    • All nodes on the flow are selected

    4b. Undo

    • Make a change (e.g. move a node)
    • Long press → Undo
    • Last action is undone

    4c. Redo

    • After undoing, long press → Redo
    • Action is redone

    4d. Cut

    • Select a node, long press → Cut
    • Node is removed from canvas

    4e. Copy + Paste

    • Select a node, long press → Copy
    • Long press → Paste
    • Node is pasted onto canvas

    4f. Delete

    • Select a node, long press → Delete
    • Node is deleted

    4g. Insert Node

    • Long press on empty canvas → Insert → Node
    • Quick-add node dialog opens

    4h. Disabled states

    • With no history, Undo is greyed out in the menu
    • With no clipboard, Paste is greyed out in the menu

    5. Locked workspace

    • Lock the workspace (via workspace settings)
    • Long press on canvas
    • Context menu appears
    • Edit operations (cut, delete, insert node, etc.) are disabled/greyed out

    6. Mouse right-click still works

    • Disable touch simulation in DevTools
    • Right-click on empty canvas
    • Context menu appears as normal
    • Right-click on a node
    • Context menu appears as normal
    • Right-click on a wire
    • Context menu appears as normal

    7. No radial menu remnants

    • Perform a long press to open the context menu
    • Open DevTools Elements panel — confirm no .red-ui-editor-radial-menu element exists in the DOM
    • Open DevTools Network panel — confirm radialMenu.js is not loaded

    Known non-issues

    • "move of an UNKNOWN touch" console warnings from editor.js — pre-existing Monaco internal issue, unrelated to this change, safe to ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions