Listen to scroll and use judgeAndUpdate() to update when scroll ends