Class: ScreenTapGesture

ScreenTapGesture

The ScreenTapGesture class represents a tapping gesture by a finger or tool.

A screen tap gesture is recognized when the tip of a finger pokes forward and then springs back to approximately the original postion, as if tapping a vertical screen. The tapping finger must pause briefly before beginning the tap.

Important: To use screen tap gestures in your application, you must enable recognition of the screen tap gesture. You can enable recognition with:

TODO

ScreenTap gestures are discrete. The ScreenTapGesture object representing a tap always has the state, STATE_STOP. Only one ScreenTapGesture object is created for each screen tap gesture recognized.

new ScreenTapGesture()

Constructs a new ScreenTapGesture object.

An uninitialized ScreenTapGesture object is considered invalid. Get valid instances of the ScreenTapGesture class from a Frame object.

Source:
  • gesture.js, line 293

Members

direction :Vector

The direction of finger tip motion.

Type:
  • Vector
Source:
  • gesture.js, line 326

position :Vector

The position where the screen tap is registered.

Type:
  • Vector
Source:
  • gesture.js, line 319

progress :Number

The progess value is always 1.0 for a screen tap gesture.

Type:
  • Number
Source:
  • gesture.js, line 333