Interface Touch
clientX: number;
clientY: number;
force: number;
identifier: number;
pageX: number;
pageY: number;
radiusX: number;
radiusY: number;
rotationAngle: number;
screenX: number;
screenY: number;
target: EventTarget;
}
Properties
ReadonlyclientX
The Touch.clientX read-only property returns the X coordinate of the touch point relative to the viewport, not including any scroll offset.
ReadonlyclientY
The Touch.clientY read-only property returns the Y coordinate of the touch point relative to the browser's viewport, not including any scroll offset.
Readonlyforce
The Touch.force read-only property returns the amount of pressure the user is applying to the touch surface for a Touch point.
Readonlyidentifier
The Touch.identifier returns a value uniquely identifying this point of contact with the touch surface.
ReadonlypageX
The Touch.pageX read-only property returns the X coordinate of the touch point relative to the viewport, including any scroll offset.
ReadonlypageY
The Touch.pageY read-only property returns the Y coordinate of the touch point relative to the viewport, including any scroll offset.
ReadonlyradiusX
The radiusX read-only property of the Touch interface returns the X radius of the ellipse that most closely circumscribes the area of contact with the touch surface.
ReadonlyradiusY
The radiusY read-only property of the Touch interface returns the Y radius of the ellipse that most closely circumscribes the area of contact with the touch surface.
ReadonlyrotationAngle
The rotationAngle read-only property of the Touch interface returns the rotation angle, in degrees, of the contact area ellipse defined by Touch.radiusX and Touch.radiusY.
ReadonlyscreenX
Returns the X coordinate of the touch point relative to the screen, not including any scroll offset.
ReadonlyscreenY
Returns the Y coordinate of the touch point relative to the screen, not including any scroll offset.
Readonlytarget
The read-only target property of the Touch interface returns the (EventTarget) on which the touch contact started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.
The
Touchinterface represents a single contact point on a touch-sensitive device.MDN Reference