initGestureEvent method
Initializes a newly-created gesture event.
Syntax
object.initGestureEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, offsetXArg, offsetYArg, translationXArg, translationYArg, scaleArg, expansionArg, rotationArg, velocityXArg, velocityYArg, velocityExpansionArg, velocityAngularArg, hwTimestampArg, relatedTargetArg);
Parameters
typeArg [in]
Type: DOMStringThe type of event being created.
canBubbleArg [in]
Type: booleanWhether an event can bubble.
cancelableArg [in]
Type: booleanWhether an event's default action can be prevented.
viewArg [in]
Type: AbstractViewView that the event is taking place.
detailArg [in]
Type: longDetailed information depending upon the event.
screenXArg [in]
Type: longThe x-coordinate of the event in screen coordinates.
screenYArg [in]
Type: longThe y-coordinate of the event in screen coordinates.
clientXArg [in]
Type: floatThe x-coordinate of the event in client co-ordinates.
clientYArg [in]
Type: floatThe y-coordinate of the event in client co-ordinates.
offsetXArg [in]
Type: floatThe x-coordinate of the event in the element.
offsetYArg [in]
Type: floatThe y-coordinate of the event in the element.
translationXArg [in]
Type: floatCumulative translation along x-axis from the beginning of the interaction.
translationYArg [in]
Type: floatCumulative translation along y-axis from the beginning of the interaction.
scaleArg [in]
Type: floatCumulative scale factor for zoom from the beginning of the interaction.
expansionArg [in]
Type: floatCumulative diameter of the manipulation area from the beginning of the interaction.
rotationArg [in]
Type: floatCumulative rotation angle in radians from the beginning of the interaction.
velocityXArg [in]
Type: floatVelocity of movement along x-axis
velocityYArg [in]
Type: floatVelocity of movement along y-axis
velocityExpansionArg [in]
Type: floatVelocity of expanding manipulation area.
velocityAngularArg [in]
Type: floatAngular velocity in radians.
hwTimestampArg [in]
Type: unsigned long longThe timestamp of the touch, measured in milliseconds, from when the event was created.
relatedTargetArg [in]
Type: EventTargetSecondary EventTarget related to a UI event, depending on the type of event.
Return value
This method does not return a value.