v0.2.0
Features
- Auto-scroll in ghost return animation — when a drag is cancelled, the ghost animates back to its origin with scroll-animation.
- Auto-scroll scoped to
data-dnd-scroll— auto-scroll now activates only for elements that carry thedata-dnd-scrollattribute (set automatically byDndDroppable). Add the attribute manually to any external scrollable wrapper to enable auto-scroll there too.
Bug Fixes
- mobile support in #10
- Drop zones clipped to visible container bounds — drop zones in scrollable containers are now intersected with the container's visible viewport, preventing phantom zones outside the scroll area.
Refactoring
DOMHelperextracted — DOM queries and measurements moved to a dedicatedDOMHelperclass for better testability and separation of concerns.- Animations extracted — ghost animation logic lives in its own module, reducing coupling inside
DragController.
Package
- Added
description,author,homepage,bugs, and expandedkeywordsinpackage.json.
Full Changelog: v0.1.2...v0.2.0