Skip to content

Touch

Types

init

type init = {
mutable identifier: int,
mutable target: WebAPI.DOM.eventTarget,
mutable clientX?: float,
mutable clientY?: float,
mutable screenX?: float,
mutable screenY?: float,
mutable pageX?: float,
mutable pageY?: float,
mutable radiusX?: float,
mutable radiusY?: float,
mutable rotationAngle?: float,
mutable force?: float,
mutable altitudeAngle?: float,
mutable azimuthAngle?: float,
mutable touchType?: touchType,
}

Record fields

identifier
int
clientX
option<float>
clientY
option<float>
screenX
option<float>
screenY
option<float>
pageX
option<float>
pageY
option<float>
radiusX
option<float>
radiusY
option<float>
rotationAngle
option<float>
force
option<float>
altitudeAngle
option<float>
azimuthAngle
option<float>
touchType
option<touchType>

t

type t = private {
identifier: int,
target: WebAPI.DOM.eventTarget,
screenX: float,
screenY: float,
clientX: float,
clientY: float,
pageX: float,
pageY: float,
radiusX: float,
radiusY: float,
rotationAngle: float,
force: float,
}

Record fields

identifier
int
screenX
float
screenY
float
clientX
float
clientY
float
radiusX
float
radiusY
float
rotationAngle
float

touchType

type touchType = @as("direct") Direct | @as("stylus") Stylus

Values

make

let make: init => t

Parameters

Return type

t