import { useEventListener as e } from "../../../composition/useEventListener.js";
import { useMouseUp as t } from "./useMouseUp.js";
import { requestTick as n } from "../../../helpers/index.js";
function r(r, i) {
	let a;
	function o(e) {
		a = { ...e };
	}
	t(() => {
		a = void 0, i();
	});
	let s = n(r);
	return e(window, "mousemove", (e) => {
		a && s({
			x: a.x,
			width: a.width,
			diff: e.x - a.x
		});
	}), { start: o };
}
export { r as useColumn };

//# sourceMappingURL=useColumn.js.map