Window.getTouchVelocity

Function/Meaning
Get touch coordinate movement velocity (1.1.0 or later)
Type
Method of the Window class
Syntax
getTouchVelocity(id, x, y, speed)
Arguments
id Specifies the touch ID.
x Returns the movement velocity of the mouse coordinates in the X-axis direction.
y Returns the movement velocity of the mouse coordinates in the Y-axis direction.
speed Returns the movement velocity of the mouse coordinates.
Return Value
Returns whether the acquisition succeeded or failed
Description
Gets the current touch movement velocity in pixels / sec.
It is measured from the time it is pressed until it is released.
Velocity is measured for each ID to support multi-touch.
Note that the measured velocity information will disappear once the Window.onTouchUp event method call finishes.
Reference
Window.getMouseVelocity