Search code examples
autodesk-forgeautodesk-viewer

How to check if the context menu is open on Autodesk Forge


Is there any way to check if the context menu is active (open)?


Solution

  • The following code shows the status of the context menus

    if (viewer.contextMenu.contextMenu.menus.length > 0)
    return true; // is active
    else 
    return false; // is not active