outsystems-ui - v3.0.0
    Preparing search index...

    Class to manage an element's transform animation on drag

    Index
    • Method to handle the gesture end callback

      Parameters

      • offsetX: number

        Horizontal distance travelled by the gesture, in pixels

      • offsetY: number

        Vertical distance travelled by the gesture, in pixels

      • timeTaken: number

        Duration of the gesture, in milliseconds

      • callback: Generic

        Function invoked when the drag ends

      • OptionalspringProperties: SpringAnimationConfigs

        Spring animation properties applied when the drag ends

      Returns void

    • Method to handle the gesture move callback

      Parameters

      • offsetX: number

        Horizontal distance travelled by the gesture, in pixels

      • offsetY: number

        Vertical distance travelled by the gesture, in pixels

      • currentX: number

        Current horizontal pointer position, in pixels

      • currentY: number

        Current vertical pointer position, in pixels

      • event: TouchEvent

        Touch event of the current drag move

      Returns void

    • Method to handle the gesture start callback

      Parameters

      • verticalDrag: boolean

        True when the drag is vertical, false when horizontal

      • expectedDirection: OSFramework.OSUI.GlobalEnum.Direction

        Direction the drag is expected to move in

      • currentX: number

        Current horizontal pointer position, in pixels

      • currentY: number

        Current vertical pointer position, in pixels

      • isOpen: boolean

        True when the dragged element is currently open

      • size: string

        Size of the dragged element, in pixels

      Returns void