Remove code repetition
Use setTimeout instead of setInterval for throttling scrolling. Fixes #57