{{ APIRef("Touch Events") }}
A TouchList
represents a list of all of the points of contact with a touch surface; for example, if the user has three fingers on the screen (or trackpad), the corresponding TouchList
would have one {{domxref("Touch")}} object for each finger, for a total of three entries.
Attributes
- {{domxref("TouchList.length")}} {{readonlyInline}}
- The number of {{domxref("Touch")}} objects in the
TouchList
.
Methods
- {{domxref("TouchList.item()")}}
- Returns the {{domxref("Touch")}} object at the specified index in the list. You can also simply reference the
TouchList
using array syntax (touchList[x]
).
Example
See the example on the main Touch events article.
See also
- Touch events
- {{domxref("Touch")}}
- {{domxref("TouchEvent")}}