Update DraggableOptions with smoothTime parameter

Added optional 'smoothTime' parameter to DraggableOptions.
This commit is contained in:
sindri 2026-03-03 13:31:10 +01:00 committed by GitHub
parent cfa61c3b2a
commit 8d2847c4fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,6 +66,8 @@ draggable(opts: DraggableOptions?) -> Action
DraggableOptions
• axis: "x" | "y" | "both" (default "both")
Constrains dragging to a single axis or allows free movement.
• smoothTime: number (optional, default 0)
Enables smoothing/“weight” while dragging. 0 disables smoothing. Practical range: 0.050.12.
• onDragStart: (startPos: UDim2) -> () (optional)
Called when dragging begins. Receives the starting Position.
• onDrag: (newPos: UDim2) -> () (optional)
@ -73,6 +75,7 @@ Called while dragging. Receives the updated Position.
• onDragEnd: (endPos: UDim2) -> () (optional)
Called when dragging ends. Receives the final Position.
Supported instances
draggable() must be applied to an instance that: