What you're describing is a common side effect of staring at a screen for a long stretch. Your eyes adjust to that fixed focal distance and steady motion, so when you suddenly look at a different scene, they need a moment to readjust.
It's the same idea as walking indoors after being out in bright sunlight—your eyes take a bit to adapt, and things feel off until they do. Taking regular breaks, looking at something far away, and resting your eyes usually helps reduce that disorienting feeling.