Titanium.UI.View.click

Event of Titanium.UI.View.
Platform Since
Android 0.9
iPhone 0.9
iPad 0.9
Mobile Web 1.8

Summary

Fired when the device detects a click against the view.

Description

There is a subtle difference between singletap and click events.

A singletap event is generated when the user taps the screen briefly without moving their finger. This gesture will also generate a click event.

However, a click event can also be generated when the user touches, moves their finger, and then removes it from the screen.

On Android, a click event can also be generated by a trackball click.

Properties

Properties of the object passed to the event callback:
Name Type Summary
globalPoint

Deprecated Dictionary with properties x and y describing the location of the event in screen coordinates.

source Object

Source object that fired the event.

type String

Name of the event fired.

x Number

X coordinate of the event, in the source view's coordinates.

y Number

Y coordinate of the event, in the source view's coordinates.