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).
Smooth-scrolls the window to the top, optionally invoking
onCompleteonce the scroll has actually finished (polled viawindow.scrollY, sincescrollTo's smooth behavior has no native completion event).Ported from
luv-autoq-frontend(byte-identical across the three apps that had their own copy).