Phaser API Documentation

  Version: 
<static> UserSelect(canvas, [value])

Description:

Sets the user-select property on the canvas style. Can be used to disable default browser selection actions.

Parameters:

name type arguments Default description
canvas HTMLCanvasElement

The canvas element to have the style applied to.

value string <optional> 'none'

The touch callout value to set on the canvas. Set to none to disable touch callouts.

Returns:
Description:

The canvas element.

Type:
  • HTMLCanvasElement
Examples:
Since: 3.0.0