videosphere
    Preparing search index...

    Function isCaptionScrollTowardOlderContent

    • Whether a scrollTop change means the user moved toward older captions / the page header.

      Parameters

      • previousScrollTop: number

        Last observed scrollTop.

      • nextScrollTop: number

        Current scrollTop.

      • thresholdPx: number = CAPTION_FOLLOW_SCROLL_UP_PX

        Minimum decrease to count as intentional.

      Returns boolean

      True when follow should pause.