class js.html.Touch

Available on js

A Touch object represents a single point of contact between the user and a touch-sensitive interface device (which may be, for example, a touchscreen or a trackpad).

Documentation for this class was provided by MDN.

Instance Fields

var clientX:Int

The X coordinate of the touch point relative to the viewport, not including any scroll offset. Read only.

var clientY:Int

The Y coordinate of the touch point relative to the viewport, not including any scroll offset. Read only.

var force:Float

The amount of pressure being applied to the surface by the user, as a float between 0.0 (no pressure) and 1.0 (maximum pressure). Read only.

var identifier:Int

A unique identifier for this Touch object. A given touch (say, by a finger) will have the same identifier for the duration of its movement around the surface. This lets you ensure that you're tracking the same touch all the time. Read only.

var pageX:Int

The X coordinate of the touch point relative to the viewport, including any scroll offset. Read only.

var pageY:Int

The Y coordinate of the touch point relative to the viewport, including any scroll offset. Read only.

var radiusX:Int

The X radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in pixels of the same scale as screenX. Read only.

var radiusY:Int

The Y radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in pixels of the same scale as screenY. Read only.

var rotationAngle:Float

The angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface. Read only.

var screenX:Int

The X coordinate of the touch point relative to the screen, not including any scroll offset. Read only.

var screenY:Int

The Y coordinate of the touch point relative to the screen, not including any scroll offset. Read only.