I've noticed recently that the Editor in Xcode seems to periodically scroll-up on its own. Which I, at least, find very annoying.
I've looked at a couple of other postings:
But neither of them seem to provide a solution for me, as I'm not pressing the Command key and I'm not using multiple fingers on the touch-pad.
It seems to happen most frequently when I'm working on code near the bottom of the file, I haven't been able to narrow down the cause-and-effect scenario more than that just yet.