Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

initGestureEvent method

Initializes a newly-created gesture event.

Important  As of Microsoft Edge, the createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information.
Internet Explorer 10

 

Syntax

MSGestureEvent.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: DOMString

The type of event being created.

canBubbleArg [in]

Type: boolean

Whether an event can bubble.

cancelableArg [in]

Type: boolean

Whether an event's default action can be prevented.

viewArg [in]

Type: AbstractView

View that the event is taking place.

detailArg [in]

Type: Integer

Detailed information depending upon the event. See Gesture flags for status flags.

screenXArg [in]

Type: Integer

The x-coordinate of the event in screen coordinates.

screenYArg [in]

Type: Integer

The y-coordinate of the event in screen coordinates.

clientXArg [in]

Type: Floating-point

The x-coordinate of the event in client co-ordinates.

clientYArg [in]

Type: Floating-point

The y-coordinate of the event in client co-ordinates.

offsetXArg [in]

Type: Floating-point

The x-coordinate of the event in the element.

offsetYArg [in]

Type: Floating-point

The y-coordinate of the event in the element.

translationXArg [in]

Type: Floating-point

Cumulative translation along x-axis from the beginning of the interaction.

translationYArg [in]

Type: Floating-point

Cumulative translation along y-axis from the beginning of the interaction.

scaleArg [in]

Type: Floating-point

Cumulative scale factor for zoom from the beginning of the interaction.

expansionArg [in]

Type: Floating-point

Cumulative diameter of the manipulation area from the beginning of the interaction.

rotationArg [in]

Type: Floating-point

Cumulative rotation angle in radians from the beginning of the interaction.

velocityXArg [in]

Type: Floating-point

Velocity of movement along x-axis

velocityYArg [in]

Type: Floating-point

Velocity of movement along y-axis

velocityExpansionArg [in]

Type: Floating-point

Velocity of expanding manipulation area.

velocityAngularArg [in]

Type: Floating-point

Angular velocity in radians.

hwTimestampArg [in]

Type: Integer

The timestamp of the touch, measured in milliseconds, from when the event was created.

relatedTargetArg [in]

Type: EventTarget

Secondary EventTarget related to a UI event, depending on the type of event.

Return value

This method does not return a value.

Remarks

Note  This item described in this topic requires Windows 8.

See also

MSGestureEvent

 

 

Show:
© 2015 Microsoft