Added fixed for infinite loop when scrolling up

https://github.com/cferdinandi/smooth-scroll/issues/13