@dflex/draggable
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "@dflex/draggable", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "dist/dflexDraggable.min.cjs.js", | ||
@@ -40,3 +40,3 @@ "umd:main": "dist/dflexDraggable.min.umd", | ||
}, | ||
"gitHead": "35e3770cb68b2d40ebd46c7acf29e4d15a8168f3" | ||
"gitHead": "46d08c798de6c6e1899889c5f0df1d2b32fd225c" | ||
} |
@@ -20,5 +20,3 @@ import { DRAGGED_ELM } from "../constants.json"; | ||
*/ | ||
constructor(element, { x: initX, y: initY }, opts = {}) { | ||
const { isTransitionEnabled } = opts; | ||
constructor(element, { x: initX, y: initY }) { | ||
/** | ||
@@ -37,10 +35,2 @@ * Assign instance for dragged. | ||
// if (this.draggedClassName) { | ||
// this[DRAGGED_ELM].element.classList.add(this.draggedClassName); | ||
// } | ||
// if (style) { | ||
// this[DRAGGED_ELM].element.setAttribute("style", JSON.stringify(style)); | ||
// } | ||
/** | ||
@@ -64,23 +54,8 @@ * When dragging start, element shouldn't jump from its translate. So, we | ||
this.draggedStyleProps = isTransitionEnabled | ||
? [ | ||
{ | ||
prop: "zIndex", | ||
value: "99", | ||
}, | ||
{ | ||
prop: "pointerEvents", | ||
value: "none", | ||
}, | ||
{ | ||
prop: "transition", | ||
value: `opacity 0.2s cubic-bezier(0.2, 0, 0, 1) 0s`, | ||
}, | ||
] | ||
: [ | ||
{ | ||
prop: "zIndex", | ||
value: "99", | ||
}, | ||
]; | ||
this.draggedStyleProps = [ | ||
{ | ||
prop: "zIndex", | ||
value: "99", | ||
}, | ||
]; | ||
@@ -87,0 +62,0 @@ this.setDragged(true); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72875
210