Touch

Availability

BlackBerry 7.0 or later

The Touch object represents an individual point of contact for a touch event on a touch-sensitive screen.

Create an instance of a Touch object using Document.createTouch() .

Properties

Property name

Type

Description

Status

Support level

Availability

clientX

long

Returns the X coordinate of the Touch, relative to the viewport, excluding any scroll offset.

read only

Touch Events

7.0+

clientY

long

Returns the Y coordinate of the Touch, relative to the viewport, excluding any scroll offset.

read only

Touch Events

7.0+

force

float

Returns the relative value of pressure. The value is between 0 and 1, where 0 indicates no pressure, and 1 indicates the maximum amount of pressure that the touch screen can detect.

read only

Touch Events

7.0+

identifier

long

Returns the identification number for the Touch.

read only

Touch Events

7.0+

pageX

long

Returns the X coordinate of the Touch, relative to the viewport, including any scroll offset.

read only

Touch Events

7.0+

pageY

long

Returns the Y coordinate of the Touch, relative to the viewport, including any scroll offset.

read only

Touch Events

7.0+

radiusX

long

Returns the radius of the ellipse which most closely circumscribes the touching area along the x-axis, in pixels. If this value cannot be determined, a value of 1 is returned.

read only

Touch Events

7.0+

radiusY

long

Returns the radius of the ellipse which most closely circumscribes the touching area along the Y-axis, in pixels. If this value cannot be determined, a value of 1 is returned.

read only

Touch Events

7.0+

rotationAngle

float

Returns the angle, in degrees, that the ellipse defined by radiusX and radiusY is rotated about its center.

read only

Touch Events

7.0+

screenX

long

Returns the X coordinate of the Touch, relative to the device screen.

read only

Touch Events

7.0+

screenY

long

Returns the Y coordinate of the Touch, relative to the device screen.

read only

Touch Events

7.0+

target

EventTarget

Returns the element closest to the original Touch, which serves as the target of the event.

read only

Touch Events

7.0+

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus