Compartilhar via


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: 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: long

    Detailed information depending upon the event.

  • screenXArg [in]
    Type: long

    The x-coordinate of the event in screen coordinates.

  • screenYArg [in]
    Type: long

    The y-coordinate of the event in screen coordinates.

  • clientXArg [in]
    Type: float

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

  • clientYArg [in]
    Type: float

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

  • offsetXArg [in]
    Type: float

    The x-coordinate of the event in the element.

  • offsetYArg [in]
    Type: float

    The y-coordinate of the event in the element.

  • translationXArg [in]
    Type: float

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

  • translationYArg [in]
    Type: float

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

  • scaleArg [in]
    Type: float

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

  • expansionArg [in]
    Type: float

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

  • rotationArg [in]
    Type: float

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

  • velocityXArg [in]
    Type: float

    Velocity of movement along x-axis

  • velocityYArg [in]
    Type: float

    Velocity of movement along y-axis

  • velocityExpansionArg [in]
    Type: float

    Velocity of expanding manipulation area.

  • velocityAngularArg [in]
    Type: float

    Angular velocity in radians.

  • hwTimestampArg [in]
    Type: unsigned long long

    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.