react-draggable
Advanced tools
Comparing version 0.6.0 to 0.7.0
{ | ||
"name": "react-draggable", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"homepage": "https://github.com/mzabriskie/react-draggable", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -64,1 +64,7 @@ # Changelog | ||
- Add `bounds` option to restrict dragging within parent or within coordinates. | ||
### 0.7.0 (May 7, 2015) | ||
- Breaking change: `bounds` with coordinates was confusing because it was using the item's width/height, | ||
which was not intuitive. When providing coordinates, `bounds` now simply restricts movement in each | ||
direction by that many pixels. |
@@ -188,5 +188,2 @@ 'use strict'; | ||
}; | ||
} else { | ||
if (isNum(bounds.right)) bounds.right -= outerWidth(node); | ||
if (isNum(bounds.bottom)) bounds.bottom -= outerHeight(node); | ||
} | ||
@@ -193,0 +190,0 @@ |
{ | ||
"name": "react-draggable", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "React draggable component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -80,3 +80,4 @@ # react-draggable [![Build Status](https://travis-ci.org/mzabriskie/react-draggable.svg?branch=master)](https://travis-ci.org/mzabriskie/react-draggable) | ||
// (nearest node with position relative or absolute), or | ||
// - An object with left, top, right, and bottom properties. | ||
// - An object with left, top, right, and bottom properties. These indicate how far in each direction | ||
// the draggable can be moved. See example/index.html for more on this. | ||
// | ||
@@ -83,0 +84,0 @@ // `zIndex` specifies the zIndex to use while dragging. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28212
131
579