pl.wendigo.chrome.api.input / TouchPoint

TouchPoint

data class TouchPoint (source)

Link
Input#TouchPoint type documentation.

Constructors

<init>

TouchPoint(x: Double, y: Double, radiusX: Double? = null, radiusY: Double? = null, rotationAngle: Double? = null, force: Double? = null, id: Double? = null)

Properties

force

val force: Double?

Force (default: 1.0).

id

val id: Double?

Identifier used to track touch sources between events, must be unique within an event.

radiusX

val radiusX: Double?

X radius of the touch area (default: 1.0).

radiusY

val radiusY: Double?

Y radius of the touch area (default: 1.0).

rotationAngle

val rotationAngle: Double?

Rotation angle (default: 0.0).

x

val x: Double

X coordinate of the event relative to the main frame's viewport in CSS pixels.

y

val y: Double

Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.