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

react-draggable

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-draggable - npm Package Versions

1
8

2.0.0-beta2

Diff

Changelog

Source

2.0.0-beta2 (Apr 14, 2016)

  • We're making a small deviation from React Core's controlled vs. uncontrolled scheme; for convenience, <Draggable>s with a position property will still be draggable, but will revert to their old position on drag stop. Attach an onStop or onDrag handler to synchronize state.
    • A warning has been added informing users of this. If you make <Draggable> controlled but attach no callback handlers, a warning will be printed.
strml
published 2.0.0-beta1 •

Changelog

Source

2.0.0-beta1 (Apr 14, 2016)

  • Due to API changes, this is a major release.
Breaking Changes:
  • Both <DraggableCore> and <Draggable> have had their callback types changed and unified.
type DraggableEventHandler = (e: Event, data: DraggableData) => void | false;
type DraggableData = {
  node: HTMLElement,
  // lastX + deltaX === x
  x: number, y: number,
  deltaX: number, deltaY: number,
  lastX: number, lastY: number
};
  • The start option has been renamed to defaultPosition.
  • The zIndex option has been removed.
Possibly Breaking Changes:
  • When determining deltas, we now use a new method that checks the delta against the Draggable's offsetParent. This method allows us to support arbitrary nested scrollable ancestors without scroll handlers!
    • This may cause issues in certain layouts. If you find one, please open an issue.
Enhancements:
  • <Draggable> now has a position attribute. Its relationship to defaultPosition is much like value to defaultValue on React <input> nodes. If set, the position is fixed and cannot be mutated. If empty, the component will manage its own state. See #140 for more info & motivations.
  • Misc. bugfixes.
strml
published 1.4.0-beta1 •

Changelog

Source

1.4.0-beta1 (Apr 13, 2016)

  • Major improvements to drag tracking that now support even nested scroll boxes.
    • This revision is being done as a pre-release to ensure there are no unforeseen issues with the offset changes.
strml
published 1.3.7 •

Changelog

Source

1.3.7 (Apr 8, 2016)

  • Fix user-select prefixing, which may be different than the prefix required for transform.
strml
published 1.3.6 •

Changelog

Source

1.3.6 (Apr 8, 2016)

  • Republished after 1.3.5 contained a bundling error.
strml
published 1.3.4 •

Changelog

Source

1.3.4 (Mar 5, 2016)

  • Bugfix: Scrolling while dragging caused items to move unpredictably.
strml
published 1.3.3 •

Changelog

Source

1.3.3 (Feb 11, 2016)

  • Bugfix: #116: Android/Chrome are finicky; give up on canceling ghost clicks entirely.
strml
published 1.3.2 •

Changelog

Source

1.3.2 (Feb 11, 2016)

  • Bugfix: #116: Child inputs not focusing on touch events.
strml
published 1.3.1 •

Changelog

Source

1.3.1 (Feb 10, 2016)

  • Internal: Babel 6 and Flow definitions
  • Bugfix: 1.3.0 broke string bounds ('parent', selectors, etc.).
  • Bugfix: 1.3.0 wasn't updating deltaX and deltaY on a bounds hit.
strml
published 1.3.0 •

Changelog

Source

1.3.0 (Feb 10, 2016)

  • Possibly breaking change: bounds are calculated before <Draggable> fires drag events, as they should have been.
  • Added 'none' axis type. This allows using <Draggable> somewhat like <DraggableCore> - state will be kept internally (which makes bounds checks etc possible), but updates will not be flushed to the DOM.
  • Performance tweaks.
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