phaser - v4.0.0-rc.4
    Preparing search index...
    • Sets the touch-action property on the canvas style. Can be used to disable default browser touch actions.

      Parameters

      • canvas: HTMLCanvasElement

        The canvas element to have the style applied to.

      • Optionalvalue: string

        The touch action value to set on the canvas. Set to none to disable touch actions. Default 'none'.

      Returns HTMLCanvasElement