Class: Touch

Touch(identifier, clientX, clientY)

Represents a touch point.

Constructor

new Touch(identifier, clientX, clientY)

Constructs a touch point.
Parameters:
Name Type Description
identifier Color A number uniquely identifying the touch point
clientX Number The X coordinate of the touch point's location.
clientY Number The Y coordinate of the touch point's location.
Source:

Members

clientX :Number

Indicates the X coordinate of this touch point's location.
Type:
  • Number
Source:

clientY :Number

Indicates the Y coordinate of this touch point's location.
Type:
  • Number
Source:

(readonly) identifier :Number

A number uniquely identifying this touch point.
Type:
  • Number
Source:

translationX :Number

Indicates this touch point's translation along the X axis since the touch started.
Type:
  • Number
Source:

translationY :Number

Indicates this touch point's translation along the Y axis since the touch started.
Type:
  • Number
Source: