Preparing search index...

    Class PanGestureStartEvent

    Triggered when a pan gesture starts.

    function onPanStart(eventData) {
    var translation = eventData.getTranslation();
    var touches = eventData.getTouches();
    }
    var ev = script.createEvent("PanGestureStartEvent");
    ev.bind(onPanStart);

    Hierarchy (View Summary)

    Index

    Properties

    enabled: boolean

    If true, the event is able to trigger. If false, the event will not trigger.

    Methods

    • Binds a callback function to this event.

      Parameters

      • evCallback: (arg1: this) => void

      Returns void

    • Normalized screen positions ([0,1] x [0,1]) of all touches at the start of the pan.

      Returns vec2[]

    • The change in position relative to the initial position of the gesture, in normalized screen coordinates.

      Returns vec2

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean