Canvas.setTouchAction()

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

Sets the touch-action property on the canvas style. Can be used to disable default browser touch 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 65)
doc_phaser
2017-02-14 10:41:05
Comments
Leave a Comment

Please login to continue.