react-draggable
Advanced tools
Comparing version 0.8.2 to 0.8.3
{ | ||
"name": "react-draggable", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"homepage": "https://github.com/mzabriskie/react-draggable", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -108,1 +108,4 @@ # Changelog | ||
### 0.8.3 (Oct 12, 2015) | ||
- Bugfix: Short-circuiting drag throws due to `e.changedTouches` check. |
@@ -521,3 +521,3 @@ 'use strict'; | ||
} | ||
// Make it possible to attach event handlers on top of this one | ||
@@ -569,3 +569,3 @@ this.props.onMouseDown(e); | ||
return; | ||
} | ||
} | ||
@@ -614,3 +614,3 @@ removeUserSelectStyles(this); | ||
var shouldUpdate = this.props.onDrag(e, createUIEvent(this)); | ||
if (shouldUpdate === false) return this.handleDragEnd(); | ||
if (shouldUpdate === false) return this.handleDragEnd({}); | ||
@@ -617,0 +617,0 @@ // Update transform |
{ | ||
"name": "react-draggable", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "React draggable component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -68,3 +68,3 @@ # react-draggable [![Build Status](https://travis-ci.org/mzabriskie/react-draggable.svg?branch=master)](https://travis-ci.org/mzabriskie/react-draggable) | ||
**`moveOnStartChange`**: if true (it defaults false), will move the element if there is a change in `start`. We set this by default to `false` because it can cause unwanted effects if you are not aware of it. | ||
**`moveOnStartChange`**: if true (it defaults false), will move the element if there is a change in `start`. It won't work if the start is changed in the middle of a drag. We set this by default to `false` because it can cause unwanted effects if you are not aware of it. | ||
@@ -143,2 +143,4 @@ **`zIndex`**: specifies the zIndex to use while dragging. | ||
You **can't** update the `start` position during a drag. See [#94](https://github.com/mzabriskie/react-draggable/issues/94). | ||
## Dragging images | ||
@@ -145,0 +147,0 @@ |
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
37141
171