Canvas.setUserSelect()

<static> setUserSelect(canvas, value) → {HTMLCanvasElement}

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

Parameters
Name Type Argument Description
canvas HTMLCanvasElement

The canvas to set the touch action on.

value string <optional>

The touch action to set. Defaults to 'none'.

Returns
HTMLCanvasElement -

The source canvas.

Source code: utils/Canvas.js (Line 85)
doc_phaser
2017-02-14 10:41:06
Comments
Leave a Comment

Please login to continue.