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
The X coordinate of the touch point relative to the viewport, not including any scroll offset. Read only.
The Y coordinate of the touch point relative to the viewport, not including any scroll offset. Read only.
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.
The X coordinate of the touch point relative to the viewport, including any scroll offset. Read only.
The Y coordinate of the touch point relative to the viewport, including any scroll offset. Read only.
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.
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.
The X coordinate of the touch point relative to the screen, not including any scroll offset. Read only.