list-dragon
Advanced tools
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 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25717
16
486
0
2
25
+ Addedcss-injector@^1.1.0
+ Addedcss-injector@1.1.0(transitive)