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

@dflex/draggable

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dflex/draggable - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

4

package.json
{
"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);

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