react-resizable
Advanced tools
Comparing version 1.3.3 to 1.4.0
@@ -28,4 +28,3 @@ 'use strict'; | ||
/*:: type Position = { | ||
deltaX: number, | ||
deltaY: number | ||
};*/ | ||
@@ -39,3 +38,5 @@ /*:: type State = { | ||
node: HTMLElement, | ||
position: Position | ||
x: number, y: number, | ||
deltaX: number, deltaY: number, | ||
lastX: number, lastY: number | ||
};*/ | ||
@@ -140,5 +141,4 @@ | ||
var node = _ref.node; | ||
var position = _ref.position; | ||
var deltaX = position.deltaX; | ||
var deltaY = position.deltaY; | ||
var deltaX = _ref.deltaX; | ||
var deltaY = _ref.deltaY; | ||
@@ -164,2 +164,3 @@ var width = _this2.state.width + deltaX, | ||
newState.resizing = false; | ||
newState.slackW = newState.slackH = 0; | ||
} else { | ||
@@ -166,0 +167,0 @@ // Early return if no change after constraints |
# Changelog | ||
### 1.4.0 (May 20, 2016) | ||
- Update to React-Draggable v2, which changed callback data structure. | ||
### 1.3.4 (May 17, 2016) | ||
- Bugfix: Slack was not being reset on resizeStop. Fixes #34, #36. | ||
- Added `flow-bin` to devDeps. | ||
### 1.3.3 (Apr 19, 2016) | ||
@@ -4,0 +13,0 @@ |
{ | ||
"name": "react-resizable", | ||
"version": "1.3.3", | ||
"version": "1.4.0", | ||
"description": "A component that is resizable with handles.", | ||
@@ -47,2 +47,3 @@ "main": "index.js", | ||
"eslint-plugin-react": "^3.16.1", | ||
"flow-bin": "^0.25.0", | ||
"lodash": "^4.3.0", | ||
@@ -57,3 +58,3 @@ "pre-commit": "^1.1.2", | ||
"dependencies": { | ||
"react-draggable": "^1.3.1" | ||
"react-draggable": "^2.1.0" | ||
}, | ||
@@ -60,0 +61,0 @@ "peerDependencies": { |
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
21407
21
+ Addedreact-draggable@2.2.6(transitive)
- Removedreact-draggable@1.3.7(transitive)
Updatedreact-draggable@^2.1.0