Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

 UIEvent
   TouchEvent

Members

The TouchEvent object has these types of members:

Properties

The TouchEvent object has these properties.

PropertyAccess typeDescription

altKey

Read-only

Determines whether the ALT key was pressed for the touch event.

changedTouches

Read-only

Provides a list of changed Touch objects for every point of contact associated with the event.

ctrlKey

Read-only

Determines whether the CTRL key was pressed for the touch event.

metaKey

Read-only

Determines whether the META key was pressed for the touch event.

shiftKey

Read-only

Determines whether the SHIFT key was pressed for the touch event.

targetTouches

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.

touches

Read-only

Provides a list of Touch objects for every point of contact currently touching the surface.

 

See also

UIEvent

 

 

Show:
© 2015 Microsoft