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