Stops events from scrolling on initial load