UNPKG

@indielayer/ui

Version:

Indielayer UI Components with Tailwind CSS build for Vue 3

25 lines (24 loc) 491 B
import { getRTLOffsetType as f } from "./getRTLOffsetType.js"; function l({ containerElement: t, direction: i, isRtl: r, scrollOffset: e }) { if (i === "horizontal" && r) switch (f()) { case "negative": return -e; case "positive-descending": { if (t) { const { clientWidth: o, scrollLeft: s, scrollWidth: c } = t; return c - o - s; } break; } } return e; } export { l as adjustScrollOffsetForRtl };