Skip to content

Releases: react-grid-layout/react-draggable

1.3.1

08 Dec 01:08
96e561a
Compare
Choose a tag to compare
  • Internal: Babel 6 and Flow definitions
  • Bugfix: 1.3.0 broke string bounds ('parent', selectors, etc.).
  • Bugfix: 1.3.0 wasn't updating deltaX and deltaY on a bounds hit.

1.3.0

08 Dec 01:08
61f441b
Compare
Choose a tag to compare
  • 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.
  • Performance tweaks.

1.2.0

08 Dec 01:08
0c2e0c8
Compare
Choose a tag to compare
  • 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.

1.1.3

08 Dec 01:08
Compare
Choose a tag to compare
  • Bugfix: Server-side rendering with react-rails, which does bad things like mock window

1.1.2

08 Dec 01:08
Compare
Choose a tag to compare
  • 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.

1.1.1

08 Dec 01:08
Compare
Choose a tag to compare
  • Bugfix: Clean up scroll events if a component is unmounted before drag stops.
  • Bugfix: NaN was returning from scroll events due to event structure change.
  • Add scroll drag modulation test.

1.1.0

08 Dec 01:08
Compare
Choose a tag to compare
  • Move grid into <DraggableCore> directly. It will continue to work on <Draggable>.
  • Development fixes.

1.0.2

08 Dec 01:08
Compare
Choose a tag to compare
  • Fix enableUserSelectHack not properly disabling.
  • Fix a crash when the user scrolls the page with a Draggable active.

1.0.1

08 Dec 01:08
Compare
Choose a tag to compare
  • Fix missing dist files for webpack.
  • Ignore non-primary clicks. Added allowAnyClick option to allow other click types.

1.0.0

08 Dec 01:08
Compare
Choose a tag to compare
  • Breaking: Removed resetState() instance method
  • Breaking: Removed moveOnStartChange prop
  • Breaking: React 0.14 support only.
  • Refactored project.
  • Module now exports a <DraggableCore> element upon which <Draggable> is based.
    This module is useful for building libraries and is completely stateless.