Availability | Available in iPhone OS 2.0 and later. |
Companion guide |
The Touch
class represents a single touch on the surface. A touch is the presence or movement of a finger that is part of a unique multi-touch sequence. Use the changedTouches
method to get all the touch objects that changed in a TouchEvent
object.
The x-coordinate of the touch’s location relative to the window’s viewport.
readonly attribute long clientX;
The y-coordinate of the touch’s location relative to the window’s viewport.
readonly attribute long clientY;
The unique identifier for this touch object.
readonly attribute unsigned long identifier;
The x-coordinate of the touch’s location in page coordinates.
readonly attribute long pageX;
The y-coordinate of the touch’s location in page coordinates.
readonly attribute long pageY;
The x-coordinate of the touch’s location in screen coordinates.
readonly attribute long screenX;
The y-coordinate of the touch’s location in screen coordinates.
readonly attribute long screenY;
The target of this touch.
readonly attribute EventTarget target;
Last updated: 2010-02-24