Changed the cases in which the page will scroll