Changed parameters for onScrollEnd