Phaser API Documentation

  Version: 
disableContextMenu()

Description:

Attempts to disable the context menu from appearing if you touch-hold on the browser.

Works by listening for the contextmenu event and prevent defaulting it.

Use this if you need to disable the OS context menu on mobile.

Returns:
Description:

This Touch Manager instance.

Since: 3.20.0