- Source: src/display/canvas/index.js (Line 7)
Namespaces
Methods
-
<static> TouchAction(canvas [, value])
-
Sets the touch-action property on the canvas style. Can be used to disable default browser touch actions.
Parameters:
Name Type Argument 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
none
to disable touch actions.- Since: 3.0.0
- Source: src/display/canvas/TouchAction.js (Line 7)
Returns:
The canvas element.
- Type
- HTMLCanvasElement
-
<static> UserSelect(canvas [, value])
-
Sets the user-select property on the canvas style. Can be used to disable default browser selection actions.
Parameters:
Name Type Argument 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.- Since: 3.0.0
- Source: src/display/canvas/UserSelect.js (Line 7)
Returns:
The canvas element.
- Type
- HTMLCanvasElement