Function floating
- floating(
shape: AnyShape,
pos: Writable<Vec>,
home: Read<{ x: number; y: number }>,
opts?: FloatingOpts,
): FloatingResultParameters
- shape: AnyShape
- pos: Writable<Vec>
- home: Read<{ x: number; y: number }>
- opts: FloatingOpts = {}
Returns FloatingResult
Dragology's
withFloating: while held,posfollows the pointer directly (via the robustdragwiring — grab offset, touch, capture); on release it springs tohome(the resolved target, e.g. aclosestsnap position or a layout slot).posis the caller-owned display cell the shape renders from.While dragging, the settle spring is frozen (rate 0) so it never fights the pointer; on release it re-engages and eases
poshome.