Socket
Socket
Sign inDemoInstall

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 3.1.1 to 3.2.1

2

bower.json
{
"name": "react-draggable",
"version": "3.1.1",
"version": "3.2.1",
"homepage": "https://github.com/mzabriskie/react-draggable",

@@ -5,0 +5,0 @@ "authors": [

# Changelog
### 3.2.1 (Mar 1, 2019)
- Reverted https://github.com/mzabriskie/react-draggable/pull/361.
### ~3.2.0 (Feb 27, 2019)~
> Note: this release has been pulled due to an inadvertent breaking change. See https://github.com/mzabriskie/react-draggable/issues/391
- Feature: `defaultPosition` now allows string offsets (like {x: '10%', y: '10%'}) then calculates deltas from there. See the examples and the PR [#361](https://github.com/mzabriskie/react-draggable/pull/361/). Thanks to @tnrich and @eric-burel.
- Bugfix: Export `DraggableEvent` type for Flow consumers. Thanks @elie222.
### 3.1.1 (Dec 21, 2018)

@@ -4,0 +15,0 @@

{
"name": "react-draggable",
"version": "3.1.1",
"version": "3.2.1",
"description": "React draggable component",

@@ -5,0 +5,0 @@ "main": "dist/react-draggable.js",

@@ -21,7 +21,9 @@ declare module 'react-draggable' {

export type DraggableEvent = React.MouseEvent<HTMLElement | SVGElement>
| React.TouchEvent<HTMLElement | SVGElement>
| MouseEvent
| TouchEvent
export type DraggableEventHandler = (
e: React.MouseEvent<HTMLElement | SVGElement>
| React.TouchEvent<HTMLElement | SVGElement>
| MouseEvent
| TouchEvent,
e: DraggableEvent,
data: DraggableData

@@ -50,3 +52,4 @@ ) => void | false;

onStop: DraggableEventHandler,
onMouseDown: (e: MouseEvent) => void
onMouseDown: (e: MouseEvent) => void,
scale: number
}

@@ -53,0 +56,0 @@

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