react-os-shell 0.13.1 → 0.13.2
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 +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1481,7 +1481,7 @@ function WidgetManager({ open, onClose }) {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
|
|
1483
1483
|
// src/version.ts
|
|
1484
|
-
var VERSION = "0.13.
|
|
1484
|
+
var VERSION = "0.13.2" ;
|
|
1485
1485
|
var APP_VERSION = VERSION;
|
|
1486
1486
|
|
|
1487
1487
|
// src/changelog.ts
|
|
@@ -6493,8 +6493,10 @@ function Kanban({
|
|
|
6493
6493
|
},
|
|
6494
6494
|
onDragEnter: (e) => {
|
|
6495
6495
|
e.stopPropagation();
|
|
6496
|
+
const draggedPos = dragId !== null ? colItems.findIndex((it) => getId(it) === dragId) : -1;
|
|
6497
|
+
const target = draggedPos !== -1 && draggedPos < index ? index + 1 : index;
|
|
6496
6498
|
setOver(
|
|
6497
|
-
(prev) => prev && prev.col === col.value && prev.index ===
|
|
6499
|
+
(prev) => prev && prev.col === col.value && prev.index === target ? prev : { col: col.value, index: target }
|
|
6498
6500
|
);
|
|
6499
6501
|
},
|
|
6500
6502
|
onDragEnd: reset,
|