svelte-dnd-action 0.9.36 → 0.9.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/pointerAction.js +1 -1
package/dist/index.js
CHANGED
|
@@ -1685,7 +1685,7 @@
|
|
|
1685
1685
|
var items = config.items,
|
|
1686
1686
|
type = config.type,
|
|
1687
1687
|
centreDraggedOnCursor = config.centreDraggedOnCursor;
|
|
1688
|
-
draggedElData =
|
|
1688
|
+
draggedElData = items[currentIdx];
|
|
1689
1689
|
draggedElType = type;
|
|
1690
1690
|
shadowElData = _objectSpread2(_objectSpread2({}, draggedElData), {}, (_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, SHADOW_ITEM_MARKER_PROPERTY_NAME, true), _defineProperty(_objectSpread2$1, ITEM_ID_KEY, SHADOW_PLACEHOLDER_ITEM_ID), _objectSpread2$1));
|
|
1691
1691
|
|
package/dist/index.mjs
CHANGED
|
@@ -1679,7 +1679,7 @@ function dndzone(node, options) {
|
|
|
1679
1679
|
var items = config.items,
|
|
1680
1680
|
type = config.type,
|
|
1681
1681
|
centreDraggedOnCursor = config.centreDraggedOnCursor;
|
|
1682
|
-
draggedElData =
|
|
1682
|
+
draggedElData = items[currentIdx];
|
|
1683
1683
|
draggedElType = type;
|
|
1684
1684
|
shadowElData = _objectSpread2(_objectSpread2({}, draggedElData), {}, (_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, SHADOW_ITEM_MARKER_PROPERTY_NAME, true), _defineProperty(_objectSpread2$1, ITEM_ID_KEY, SHADOW_PLACEHOLDER_ITEM_ID), _objectSpread2$1));
|
|
1685
1685
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-dnd-action",
|
|
3
3
|
"description": "*An awesome drag and drop library for Svelte 3 and 4 (not using the browser's built-in dnd, thanks god): Rich animations, nested containers, touch support and more *",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.37",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/isaacHagoel/svelte-dnd-action.git"
|
package/src/pointerAction.js
CHANGED
|
@@ -387,7 +387,7 @@ export function dndzone(node, options) {
|
|
|
387
387
|
const rootNode = originDropZone.closest("dialog") || originDropZone.getRootNode();
|
|
388
388
|
const originDropZoneRoot = rootNode.body || rootNode;
|
|
389
389
|
const {items, type, centreDraggedOnCursor} = config;
|
|
390
|
-
draggedElData =
|
|
390
|
+
draggedElData = items[currentIdx];
|
|
391
391
|
draggedElType = type;
|
|
392
392
|
shadowElData = {...draggedElData, [SHADOW_ITEM_MARKER_PROPERTY_NAME]: true, [ITEM_ID_KEY]: SHADOW_PLACEHOLDER_ITEM_ID};
|
|
393
393
|
|