Scroll event handler updated

Now handles scrollup and scrolldown