altitude-design 0.3.0 → 0.3.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/README.md +1 -1
- package/dist/altitude.iife.js +1 -1
- package/dist/guidance/index.json +1 -1
- package/dist/guidance/llms.txt +1 -1
- package/dist/guidance/manifest.json +3 -3
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types-cjs/index.d.cts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11592,12 +11592,12 @@ var Board = React65.forwardRef(function Board2({ onMove, className, children, ..
|
|
|
11592
11592
|
};
|
|
11593
11593
|
const refocus = (id) => requestAnimationFrame(() => cardEl(id)?.focus({ preventScroll: true }));
|
|
11594
11594
|
const onPointerDown = (e, id) => {
|
|
11595
|
+
dragged.current = false;
|
|
11595
11596
|
if (e.button !== 0 || kb || e.target.closest("button, a, input, textarea, select, [contenteditable]")) return;
|
|
11596
11597
|
if (e.currentTarget.hasAttribute("data-held-by")) return;
|
|
11597
11598
|
start.current?.release?.();
|
|
11598
11599
|
const s = { x: e.clientX, y: e.clientY, id, armed: true };
|
|
11599
11600
|
start.current = s;
|
|
11600
|
-
dragged.current = false;
|
|
11601
11601
|
e.currentTarget.setPointerCapture(e.pointerId);
|
|
11602
11602
|
if (e.pointerType === "touch") {
|
|
11603
11603
|
s.armed = false;
|
|
@@ -11644,6 +11644,9 @@ var Board = React65.forwardRef(function Board2({ onMove, className, children, ..
|
|
|
11644
11644
|
const s = start.current;
|
|
11645
11645
|
start.current = null;
|
|
11646
11646
|
s?.release?.();
|
|
11647
|
+
if (dragged.current) setTimeout(() => {
|
|
11648
|
+
dragged.current = false;
|
|
11649
|
+
}, 0);
|
|
11647
11650
|
if (!s?.cols || !carry || !root.current) {
|
|
11648
11651
|
setCarry(null);
|
|
11649
11652
|
return;
|