Changed detection of scroll to bottom