Tried moving the scroll function to prevent the background derping out