Skip to content

Touch ​

JS
    Touch

Touch point.

Used only as the parameter of the callback function in touch events.

Touch Properties

PropertyTypeDescription
identifiernumberUnique identifier of the Touch object, read-only. It stays unchanged throughout the entire movement of a single touch action (the finger's touch) across the surface. It can be used to determine whether the tracked touch is the same touch process
screenXnumberX coordinate of the touch point relative to the left edge of the visible viewport
screenYnumberY coordinate of the touch point relative to the left edge of the visible viewport
clientXnumberX coordinate of the touch point relative to the left edge of the visible viewport
clientYnumberY coordinate of the touch point relative to the left edge of the visible viewport