[2.9.0] - 2026-10-28
Added
Reorder.Item: make items focusable by default and support keyboard reordering. Press Space to grab or drop, arrow keys to move, and Escape to restore the order from before the grab. Settabindex="-1"to disable the default focus behavior.Reorder.Group: pass the moved value as the second argument toonUpdate:valueslisteners.- Add
useScopeMotion(domRef, setup, options?)for scoped animations with reactive options and automatic cleanup. useScroll: returnscrollXLengthandscrollYLengthMotionValues for the maximum scroll offset of each axis.
Fixed
Reorder: make edge auto-scroll speed consistent across refresh rates.- Resolve initial
xandyvalues expressed as pixel strings or CSS variables when dragging. - Preserve drag direction locking and apply layout-shift compensation only to the dragged axes.
- End drag gestures correctly when
dragis disabled mid-gesture, preserving snap and inertia on the original drag axis. - Include
layoutScrollancestor offsets in ref-baseddragConstraintsand remeasure constraints after those ancestors scroll. - Avoid double-counting pending window scroll in drag pointer positions.
- Fix
layoutIdhandoffs to skip the incoming element's initial enter animation and preserve correct snapshots and default styles. - Keep
LayoutGroupmembership synchronized whenlayoutorlayoutIdchanges at runtime. useInView: reset to not visible when the observed element is removed or replaced, while preserving the existingonce: truebehavior.