Cursor placement

So, I’m having trouble figuring out how to keep my cursor in the same spot when I move between documents. Sometimes it stays where I was working, and other times it bounces to the top of the document. Is there a place to set this so that it always stays where I was working in a document?