Function getClosestScrollable

Returns the closest scrollable ancestor of the given element, not including it.

  • Parameters

    • element: Element
    • Optionaloptions: { active?: boolean; axis?: "x" | "y"; noCache?: boolean }

    Returns null | Element

    null if no scrollable ancestors are found.