Decouple the scroll event from the callback functions.