@polargold/pg-frontend-core
    Preparing search index...

    Function scrollToTop

    • Smooth-scrolls the window to the top, optionally invoking onComplete once the scroll has actually finished (polled via window.scrollY, since scrollTo's smooth behavior has no native completion event).

      Ported from luv-autoq-frontend (byte-identical across the three apps that had their own copy).

      Parameters

      • OptionalonComplete: () => void

      Returns void