Class TouchDataImpl

The user interaction data for touch-based interactions

Hierarchy

Implements

Constructors

Properties

_allTouches: TouchData[] = []
altKeyData: boolean = false
clientXData: number = 0
clientYData: number = 0
ctrlKeyData: boolean = false
currentTargetData: null | EventTarget = null
forceData: number = 0
identifierData: number = -1
metaKeyData: boolean = false
pageXData: number = 0
pageYData: number = 0
radiusXData: number = 0
radiusYData: number = 0
rotationAngleData: number = 0
screenXData: number = 0
screenYData: number = 0
shiftKeyData: boolean = false
targetData: null | EventTarget = null
timeStampData: number = 0

Accessors

  • get currentTarget(): null | EventTarget
  • A reference to the currently registered target for the event. This is the object to which the event is currently slated to be sent. It's possible this has been changed along the way through retargeting.

    Returns null | EventTarget

  • get pageX(): number
  • The X coordinate of the touch point relative to the left edge of the document. Unlike clientX, this value includes the horizontal scroll offset, if any.

    Returns number

  • get pageY(): number
  • The Y coordinate of the touch point relative to the top of the document. Unlike clientY, this value includes the vertical scroll offset, if any.

    Returns number

  • get radiusX(): number
  • 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.

    Returns number

  • get radiusY(): number
  • 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.

    Returns number

  • get rotationAngle(): number
  • 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.

    Returns number

  • get timeStamp(): number
  • The time at which the event was created (in milliseconds). By specification, this value is time since epoch—but in reality, browsers' definitions vary. In addition, work is underway to change this to be a DOMHighResTimeStamp instead.

    Returns number

Methods

Generated using TypeDoc