Monitors a window for scroll events and triggers scroll up or down events accordingly.