You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possibly breaking change: bounds are calculated before <Draggable> fires drag events, as they should have been.
Added 'none' axis type. This allows using <Draggable> somewhat like <DraggableCore> - state will be kept
internally (which makes bounds checks etc possible), but updates will not be flushed to the DOM.
Added arbitrary boundary selector. Now you don't have to just use 'parent', you can select any element
on the page, including 'body'.
Bugfix: Prevent invariant if a <Draggable> is unmounted while dragging.
Bugfix: Fix #133, where items would eagerly start dragging off the mouse cursor if you hit boundaries and
came back. This is due to how <DraggableCore> handles deltas only and does not keep state. Added new state
properties slackX and slackY to <Draggable> to handle this and restore pre-v1 behavior.
Bugfix: <Draggable> was calling back with clientX/Y, not offsetX/Y as it did pre-1.0. This unintended
behavior has been fixed and a test has been added.
Module now exports a <DraggableCore> element upon which <Draggable> is based.
This module is useful for building libraries and is completely stateless.