svelte-dnd-action
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -496,4 +496,10 @@ (function (global, factory) { | ||
draggableEl.ondragstart = () => false; | ||
draggableEl.style.userSelect = 'none'; | ||
draggableEl.style.cursor = dragDisabled? '': 'grab'; | ||
if (!dragDisabled) { | ||
draggableEl.style.userSelect = 'none'; | ||
draggableEl.style.cursor = 'grab'; | ||
} | ||
else { | ||
draggableEl.style.userSelect = ''; | ||
draggableEl.style.cursor = ''; | ||
} | ||
} | ||
@@ -500,0 +506,0 @@ |
@@ -33,3 +33,3 @@ { | ||
"description": "*Awesome drag and drop library for Svelte 3 (not using the browser's built in dnd, thanks god): Rich animations, nested containers, touch support and more *", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"dependencies": { | ||
@@ -36,0 +36,0 @@ "acorn": "^7.1.1", |
@@ -86,4 +86,10 @@ const TRANSITION_DURATION_SECONDS = 0.2; | ||
draggableEl.ondragstart = () => false; | ||
draggableEl.style.userSelect = 'none'; | ||
draggableEl.style.cursor = dragDisabled? '': 'grab'; | ||
if (!dragDisabled) { | ||
draggableEl.style.userSelect = 'none'; | ||
draggableEl.style.cursor = 'grab'; | ||
} | ||
else { | ||
draggableEl.style.userSelect = ''; | ||
draggableEl.style.cursor = ''; | ||
} | ||
} | ||
@@ -90,0 +96,0 @@ |
Sorry, the diff of this file is not supported yet
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
117465
2495