API Reference

Class List

pc.Touch

A instance of a single point touch on a pc.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 co-ordinate relative to the element that the TouchDevice is attached to.

y

The y co-ordinate relative to the element that the TouchDevice is attached to.

Details

Constructor

Touch(touch)

Create a new Touch object from the browser Touch.

Parameters

touchTouch

The browser Touch object.

Properties

numberid

The identifier of the touch.

Elementtarget

The target element of the touch event.

Touchtouch

The original browser Touch object.

numberx

The x co-ordinate relative to the element that the TouchDevice is attached to.

numbery

The y co-ordinate relative to the element that the TouchDevice is attached to.