/**
 * Updates the cursor style to grabbing and disables text selection
 */
export const updateCursor = () => {
    document.body.style.cursor = "grabbing";
    document.body.style.userSelect = "none";
};
/**
 * Resets the cursor style and text selection
 */
export const resetCursor = () => {
    document.body.style.cursor = "";
    document.body.style.userSelect = "";
};
/**
 * Scrolls an HTML element smoothly to a specified offset along the top or left axis.
 *
 * @param element - The HTML element to scroll.
 * @param scrollToOffset - The offset to scroll to along the specified axis.
 * @param scrollProp - The axis to scroll along, either "top" or "left".
 */
export const handleScrollToHelper = (element, scrollToOffset, scrollProp) => {
    element.scroll({
        [scrollProp]: scrollToOffset,
        behavior: "smooth"
    });
};
//# sourceMappingURL=utils.js.map