LogoRobo.js
Packages@robojs/sync

DragOptions<T>

Interface: DragOptions<T>

Options for useSyncDrag hook.

Type Parameters

Type Parameter
T

Properties

PropertyTypeDescription
bounds?DragBoundsConstrain position within bounds
interpolate?InterpolateConfig<T>Smooth remote updates with linear interpolation (field -> lerp factor 0-1)
lockOnDrag?booleanAutomatically lock when dragging starts (default: true)
normalize?booleanConvert to 0-1 viewport coordinates (default: true)
throttle?numberMilliseconds between updates (default: 16)

On this page