A robust React hook to detect vertical scroll direction ('up', 'down', 'static') for any DOM element or the window.