Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft