Skip to content

v0.2.0

Choose a tag to compare

@Horuse Horuse released this 17 Feb 19:27
· 191 commits to main since this release
b17e3f3

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 the data-dnd-scroll attribute (set automatically by DndDroppable). 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

  • DOMHelper extracted — DOM queries and measurements moved to a dedicated DOMHelper class 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 expanded keywords in package.json.

Full Changelog: v0.1.2...v0.2.0