When toggling between preview and edit mode the page goes back to the top

Also this: Triggering preview mode in long docs causes preview to scroll to top of document in certain cases