Packages@robojs/sync
DragOptions<T>
Interface: DragOptions<T>
Options for useSyncDrag hook.
Type Parameters
| Type Parameter |
|---|
T |
Properties
| Property | Type | Description |
|---|---|---|
bounds? | DragBounds | Constrain position within bounds |
interpolate? | InterpolateConfig<T> | Smooth remote updates with linear interpolation (field -> lerp factor 0-1) |
lockOnDrag? | boolean | Automatically lock when dragging starts (default: true) |
normalize? | boolean | Convert to 0-1 viewport coordinates (default: true) |
throttle? | number | Milliseconds between updates (default: 16) |
