@jossmac/lil-libs
    Preparing search index...

    Function atScrollTop

    • Checks whether an element is at the top of its scroll range.

      Uses <= 0 rather than strict equality to account for elastic overscroll on iOS.

      • el: Element

        Scrollable element to inspect.

      true when the element is at the top of its scroll range.

      atScrollTop(scrollable); // true when scrollTop <= 0