<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)
Please login to continue.