Sets the touch-action property on the canvas style. Can be used to disable default browser touch actions.
name | type | arguments | Default | description |
---|---|---|---|---|
canvas | HTMLCanvasElement |
The canvas element to have the style applied to. |
||
value | string | <optional> | 'none' |
The touch action value to set on the canvas. Set to |
The canvas element.
Sets the user-select property on the canvas style. Can be used to disable default browser selection actions.
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 |
The canvas element.