Socket
Socket
Sign inDemoInstall

list-dragon

Package Overview
Dependencies
2
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.4 to 1.3.0

18

index.js

@@ -13,3 +13,3 @@ // list-dragon node module

var body, transform, timer, scrollVelocity, cssListDragon;
var transform, timer, scrollVelocity, cssListDragon;

@@ -112,4 +112,2 @@ /* inject:css */

body = body || document.getElementsByTagName('body')[0];
transform = 'transform' in items[0].element.style

@@ -326,4 +324,16 @@ ? 'transform' // Chrome 45 and Firefox 40

body.appendChild(this);
if (!dragon.container) {
// walk back to closest shadow root OR body tag OR root tag
var container = this;
while (container.parentNode) {
container = container.parentNode;
if (container instanceof ShadowRoot || container.tagName === 'BODY'){
break;
}
}
dragon.container = container;
}
dragon.container.appendChild(this);
rect.left += window.scrollX;

@@ -330,0 +340,0 @@ rect.top += window.scrollY;

{
"name": "list-dragon",
"version": "1.2.4",
"version": "1.3.0",
"main": "./index.js",

@@ -13,2 +13,3 @@ "description": "Drag and drop items between lists.",

"dependencies": {
"css-injector": "^1.1.0",
"templex": "^1.3.1"

@@ -19,3 +20,2 @@ },

"clean-css": "^3.4.5",
"css-injector": "^1.0.2",
"gulp": "^3.9.0",

@@ -22,0 +22,0 @@ "gulp-browserify": "^0.5.1",

# list-dnd
Drag and drop items between lists.
Try the [demo](https://openfin.github.io/list-dragon/demo.html).
> NOTE: As of v1.2.0, list-dragon is now a simple node module. It is no longer a "modified node module" (containing its own extra closure for use directly in a browser).

@@ -8,0 +5,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc