Share via


TouchPoint Class

Definition

Represents a single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad.

public ref class TouchPoint
public class TouchPoint
type TouchPoint = class
Public Class TouchPoint
Inheritance
TouchPoint

Constructors

TouchPoint()

Properties

ClientX

The X coordinate of the touch point relative to the left edge of the browser viewport, not including any scroll offset.

ClientY

The Y coordinate of the touch point relative to the top edge of the browser viewport, not including any scroll offset.

Identifier

A unique identifier for this Touch object. A given touch point (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.

PageX

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.

PageY

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.

ScreenX

The X coordinate of the touch point relative to the left edge of the screen.

ScreenY

The Y coordinate of the touch point relative to the top edge of the screen.

Applies to