Class to manage an element's transform animation on drag

Export

Hierarchy

  • AnimateOnDrag

Properties

_dragParams: DragParams
_swipeTriggerSpeed: 0.3 = 0.3
_targetElement: HTMLElement

Constructors

Methods

  • Method to handle the gesture end callback

    Returns

    {void}

    Memberof

    OSFramework.Behaviors.AnimateOnDrag

    Parameters

    • offsetX: number
    • offsetY: number
    • timeTaken: number
    • callback: Generic
    • Optional springProperties: SpringAnimationConfigs

    Returns void

  • Method to handle the gesture move callback

    Returns

    {void}

    Memberof

    OSFramework.Behaviors.AnimateOnDrag

    Parameters

    • offsetX: number
    • offsetY: number
    • currentX: number
    • currentY: number
    • event: TouchEvent

    Returns void

Accessors