• Provides an action to enable pointer dragging of an HTMLElement using GSAP to or quickTo to invoke position.set on a given TJSPosition instance provided. You may provide a easeOptions object sent to the tween to modify the duration / easing. When the attached boolean store state changes the draggable action is enabled or disabled.

    Note: Requires GSAP 3.10+ for quickTo support.

    Parameters

    Returns ActionReturn<Partial<DraggableGsapOptions>>

    Action lifecycle functions.