UNPKG

@gfazioli/mantine-onboarding-tour

Version:

A Mantine component enables you to create a onboarding-tour effect using overlays, popovers, and onboarding tours, which enhances element visibility and interactivity.

16 lines (14 loc) 410 B
'use client'; const getScrollStart = ({ axis, parent }) => { if (!parent && typeof document === "undefined") { return 0; } const method = axis === "y" ? "scrollTop" : "scrollLeft"; if (parent) { return parent[method]; } const { body, documentElement } = document; return body[method] + documentElement[method]; }; export { getScrollStart }; //# sourceMappingURL=get-scroll-start.mjs.map