TouchEvent object
The read-only TouchEvent object is used for the touchstart, touchend, touchmove, and touchcancel event types.
Syntax
document.getElementsByTagName('canvas')[0].addEventListener('touchstart', handleTouchStart, false);
DOM Information
Inheritance Hierarchy
Members
The TouchEvent object has these types of members:
Properties
The TouchEvent object has these properties.
| Property | Access type | Description |
|---|---|---|
|
Read-only |
Determines whether the ALT key was pressed for the touch event. | |
|
Read-only |
Provides a list of changed Touch objects for every point of contact associated with the event. | |
|
Read-only |
Determines whether the CTRL key was pressed for the touch event. | |
|
Read-only |
Determines whether the META key was pressed for the touch event. | |
|
Read-only |
Determines whether the SHIFT key was pressed for the touch event. | |
|
Read-only |
List of Touch objects for every point of contact that is touching the surface and started on the element that is the target of the current event. | |
|
Read-only |
Provides a list of Touch objects for every point of contact currently touching the surface. |
See also