Page always scrolls to the top on resize

Form the code this looks completely intentional, as there is an explicit call to scroll(0,0) on line 63, but why is this required? I've commented that scrolling out an haven't noticed any issues in my limited testing. So I'm very curious to why it is in there and if it is safely removed (or changed).