Represents a PointerEvent.

This is an immutable object.

interface Trace {
    directlyOver: Element;
    inContact: boolean;
    isCaptured: boolean;
    movementX: number;
    movementY: number;
    properties: PointerState;
    source: PointerEvent;
    targetX: number;
    targetY: number;
    timeStamp: number;
    viewportX: number;
    viewportY: number;
}

Properties

directlyOver: Element

References the Element that fired the source PointerEvent.

inContact: boolean

Indicates whether any of the following are true.

  • The left mouse button is pressed.
  • The pen is in contact.
  • The touch is in contact.
isCaptured: boolean

Indicates the pointer id of the PointerActivity is pointer-captured by the target element of the PointerActivity.

movementX: number

Indicates the difference from x-coordinate of the previous PointerActivity.Trace.

movementY: number

Indicates the difference from y-coordinate of the previous PointerActivity.Trace.

properties: PointerState

Indicates the PointerState properties.

source: PointerEvent

References the source PointerEvent of PointerActivity.Trace.

targetX: number

Indicates the x-coordinate in the bounding box (not a padding-box) of the target element of the PointerActivity.

targetY: number

Indicates the y-coordinate in the bounding box (not a padding-box) of the target element of the PointerActivity.

timeStamp: number

Indicates the timeStamp property of the PointerEvent.

viewportX: number

Indicates the clientX property of the PointerEvent.

viewportY: number

Indicates the clientY property of the PointerEvent.