Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-draggable

Package Overview
Dependencies
Maintainers
2
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-draggable - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

2

bower.json
{
"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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc