Switch from scrollViewDidScroll to panGestureRecognizer.