@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
11 lines • 559 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWindowScrollBarX = void 0;
const getBoundingClientRect_1 = require("./getBoundingClientRect");
const getElementScroll_1 = require("./getElementScroll");
const getWindowScrollBarX = (element) => {
return ((0, getBoundingClientRect_1.getBoundingClientRect)(window.document.documentElement).left +
(0, getElementScroll_1.getElementScroll)(element).scrollLeft);
};
exports.getWindowScrollBarX = getWindowScrollBarX;
//# sourceMappingURL=getWindowScrollBarX.js.map