Files
SnowLuma/.pnpm-store/v11/files/96/bd74b1b5a866ee291c52e781c33eb4012d71fe453337cc0aff8217c6e11d2d3d59543f3ae514d5696dd97a9adeba6f2d4e3a89ae21a6f23dfa222e63905c0e
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

30 lines
666 B
Plaintext

import { isDragging } from './is-active.mjs';
function setDragLock(axis) {
if (axis === "x" || axis === "y") {
if (isDragging[axis]) {
return null;
}
else {
isDragging[axis] = true;
return () => {
isDragging[axis] = false;
};
}
}
else {
if (isDragging.x || isDragging.y) {
return null;
}
else {
isDragging.x = isDragging.y = true;
return () => {
isDragging.x = isDragging.y = false;
};
}
}
}
export { setDragLock };
//# sourceMappingURL=set-active.mjs.map