API Reference

Class List

Touch

A instance of a single point touch on a TouchDevice.

Summary

Properties

id

The identifier of the touch.

target

The target element of the touch event.

touch

The original browser Touch object.

x

The x coordinate relative to the element that the TouchDevice is attached to.

y

The y coordinate relative to the element that the TouchDevice is attached to.

Details

Constructor

Touch(touch)

Create a new Touch object from the browser Touch.

Parameters

touchglobalThis.Touch

The browser Touch object.

Properties

numberid

The identifier of the touch.

Elementtarget

The target element of the touch event.

globalThis.Touchtouch

The original browser Touch object.

numberx

The x coordinate relative to the element that the TouchDevice is attached to.

numbery

The y coordinate relative to the element that the TouchDevice is attached to.